diff options
-rw-r--r-- | .aliases | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -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 |