2010-06-27 01:12:01 +10:00
|
|
|
alias gi='sudo gem install'
|
2009-03-20 00:08:06 +11:00
|
|
|
alias ll='ls -lah'
|
|
|
|
alias ..='cd ..;' # can then do .. .. .. to move up multiple directories.
|
|
|
|
alias ...='.. ..'
|
|
|
|
alias g='grep -i' #case insensitive grep
|
|
|
|
alias h='history|g'
|
2010-06-29 22:20:19 +10:00
|
|
|
alias ducks='du -cks * | sort -rn |head -11' # Lists the size of all the folders
|
2009-03-20 00:08:06 +11:00
|
|
|
alias top='top -o cpu'
|
2010-06-29 22:20:19 +10:00
|
|
|
alias et="$EDITOR ."
|
2009-03-20 00:08:06 +11:00
|
|
|
|
2010-06-27 01:12:01 +10:00
|
|
|
alias sprof="reload"
|
2010-11-22 23:28:49 +11:00
|
|
|
alias eprof="m $HOME/.config"
|
2010-06-27 01:12:01 +10:00
|
|
|
|
2010-06-29 22:20:19 +10:00
|
|
|
alias home="cd $HOME" # the tilde is too hard to reach
|
2010-11-22 14:53:19 +11:00
|
|
|
alias systail='tail -fn0 /var/log/system.log'
|
|
|
|
alias aptail='tail -fn0 /var/log/apache*/*log'
|
2009-04-26 16:55:34 +10:00
|
|
|
alias l='ls'
|
|
|
|
alias b='cd -'
|
2009-06-13 11:48:28 +10:00
|
|
|
|
2009-03-20 00:08:06 +11:00
|
|
|
alias c='clear' # shortcut to clear your terminal
|
2009-04-26 16:55:34 +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
|
2010-11-22 14:53:19 +11:00
|
|
|
alias log='tail -fn0 ./log/*.log /var/log/apache*/*log'
|
2009-03-20 00:08:06 +11:00
|
|
|
alias ss='ruby ./script/server'
|
|
|
|
alias sc='ruby ./script/console'
|
2010-06-27 01:12:01 +10:00
|
|
|
alias gen='script/generate'
|
2009-03-20 00:08:06 +11:00
|
|
|
alias migration='script/generate migration'
|
2010-06-29 21:44:08 +10:00
|
|
|
alias migrate='rake db:migrate && rake db:migrate RAILS_ENV=test'
|
2009-03-20 00:08:06 +11:00
|
|
|
alias rollback='rake db:rollback'
|
2009-04-26 16:55:34 +10:00
|
|
|
alias r='rake'
|
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'
|