2011-10-24 14:14:51 +11:00
|
|
|
which hub &>/dev/null && alias git='nocorrect hub'
|
2011-02-21 15:54:41 +11:00
|
|
|
|
2009-03-20 00:08:06 +11:00
|
|
|
alias ll='ls -lah'
|
2009-04-26 16:55:34 +10:00
|
|
|
alias l='ls'
|
|
|
|
alias b='cd -'
|
2011-10-19 14:27:52 +11:00
|
|
|
alias cdr='cd ./$(git rev-parse --show-cdup)'
|
2009-06-13 11:48:28 +10:00
|
|
|
|
2009-03-20 00:08:06 +11:00
|
|
|
# useful command to find what you should be aliasing:
|
|
|
|
alias profileme="history | awk '{print \$2}' | awk 'BEGIN{FS=\"|\"}{print \$1}' | sort | uniq -c | sort -n | tail -n 20 | sort -nr"
|
|
|
|
|
|
|
|
# rails stuff
|
2011-03-24 16:28:27 +11:00
|
|
|
alias sc="if [ -f script/console ]; then script/console; else script/rails console; fi"
|
|
|
|
alias ss="if [ -f script/server ]; then script/server; else script/rails server; fi"
|
2011-06-08 07:38:34 +10:00
|
|
|
alias gen='if [ -f script/generate ]; then script/generate; else script/rails generate; fi'
|
2009-06-10 13:02:44 +10:00
|
|
|
alias webshare='python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"'
|
2009-03-20 00:08:06 +11:00
|
|
|
|
2010-06-29 22:20:19 +10:00
|
|
|
alias pubkey="cat $HOME/.ssh/*.pub"
|
2010-11-22 23:28:49 +11:00
|
|
|
alias colorslist="set | egrep 'COLOR_\w*'" # lists all the colors
|
2010-12-22 01:03:57 +11:00
|
|
|
|
|
|
|
alias jsonify='python -mjson.tool'
|
2011-02-08 22:24:35 +11:00
|
|
|
|
2011-12-22 06:48:06 +11:00
|
|
|
if [ -n "$SSH_CONNECTION" ]; then
|
|
|
|
# Never open GUI vim when SSHd into a box
|
|
|
|
alias mvim='vim'
|
|
|
|
alias gvim='vim'
|
|
|
|
fi
|