From e4001cc8ba6754c58df00ed0a9873051ff1bc359 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Tue, 7 Feb 2012 14:31:42 +0100 Subject: Add `urlencode` alias Via http://twatlr.com/thread/166830178226540544. --- .aliases | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.aliases b/.aliases index e51f5c3..8ecfdd7 100644 --- a/.aliases +++ b/.aliases @@ -4,6 +4,13 @@ alias ...="cd ../.." alias ~="cd ~" # `cd` is probably faster to type though alias -- -="cd -" +# Shortcuts +alias d="cd ~/Documents/Dropbox" +alias p="cd ~/Projects" +alias g="git" +alias v="vim" +alias m="mate ." + # List all files colorized in long format, including dot files alias la="ls -Gla" @@ -48,13 +55,6 @@ alias c="tr -d '\n' | pbcopy" # Recursively delete `.DS_Store` files alias cleanup="find . -name '*.DS_Store' -type f -ls -delete" -# Shortcuts -alias d="cd ~/Documents/Dropbox" -alias p="cd ~/Projects" -alias g="git" -alias v="vim" -alias m="mate ." - # File size alias fs="stat -f \"%z bytes\"" @@ -72,6 +72,9 @@ alias hide="defaults write com.apple.Finder AppleShowAllFiles -bool false && kil alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder" alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder" +# URL-encode strings +alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1]);"' + # Disable Spotlight alias spotoff="sudo mdutil -a -i off" # Enable Spotlight -- cgit v1.2.3