aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2012-02-07 14:31:42 +0100
committerMathias Bynens <mathias@qiwi.be>2012-02-07 14:31:42 +0100
commite4001cc8ba6754c58df00ed0a9873051ff1bc359 (patch)
treecfb0e851f51427385889000a32338cdbbbedb0b2
parent765854f91fa2c9cdf351f97366d14c2fdccbba18 (diff)
downloaddotfiles-e4001cc8ba6754c58df00ed0a9873051ff1bc359.tar.gz
dotfiles-e4001cc8ba6754c58df00ed0a9873051ff1bc359.tar.bz2
dotfiles-e4001cc8ba6754c58df00ed0a9873051ff1bc359.zip
Add `urlencode` alias
Via http://twatlr.com/thread/166830178226540544.
-rw-r--r--.aliases17
1 files 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