diff options
author | Mathias Bynens <mathias@qiwi.be> | 2012-02-07 14:31:42 +0100 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2012-02-07 14:31:42 +0100 |
commit | e4001cc8ba6754c58df00ed0a9873051ff1bc359 (patch) | |
tree | cfb0e851f51427385889000a32338cdbbbedb0b2 /.aliases | |
parent | 765854f91fa2c9cdf351f97366d14c2fdccbba18 (diff) | |
download | dotfiles-e4001cc8ba6754c58df00ed0a9873051ff1bc359.tar.gz dotfiles-e4001cc8ba6754c58df00ed0a9873051ff1bc359.tar.bz2 dotfiles-e4001cc8ba6754c58df00ed0a9873051ff1bc359.zip |
Add `urlencode` alias
Via http://twatlr.com/thread/166830178226540544.
Diffstat (limited to '.aliases')
-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 |