brogers /.bash_aliases

#------------------------------------------
#------------  General   ------------------
alias h='history'
alias x='exit'
alias v='feh'
alias c='cmatrix -s -b'
alias gem_path='cd /usr/lib/ruby/gems/1.8/gems' 
alias gp="grep -rn --exclude *svn* --color" 
alias more='most'
alias less='most'
alias hdd="df -h"             # show size of disc in MB/GB instead of "blocks"
alias ..="cd .."              # navigate up one directory
alias ...="cd ../.."          # navigate up two directories
alias trash="rm -fr ~/.Trash" # empty trash
alias free="free -m"          # Memory output in MB
alias df="df -Tm"             # Disk output in MB and includes Filesystem Type
# Found in Lifehacker Comments 
# http://lifehacker.com/software/how-to/turbocharge-your-terminal-274317.php#c1782742
alias profileme="history | awk '{print \$2}' | awk 'BEGIN{FS=\"|\"}{print \$1}' | sort | uniq -c | sort -n | tail -n 20 | sort -nr"

#------------------------------------------
#---------  Directory Listing   -----------
alias ls="ls --color=auto -hF --file-type"
alias la="ls --color=auto -ahF --file-type"
alias ll="ls --color=auto -lahF --file-type"

#------------------------------------------
#---------  Rails Projects  ---------------
alias mstart="mongrel_rails start -d"
alias mstop="mongrel_rails stop"
alias mrstart="mongrel_rails restart"
alias tdlog="tail -f log/development.log"
alias sc="./script/console"
alias cdm='cap deploy_with_migrations'

#------------------------------------------
#---------  Package Management  -----------
#-------------  APT-GET   -----------------
alias sapt='apt-cache search'
alias aptI='sudo apt-get install -y'
alias aptR='sudo apt-get remove'
alias aptU='sudo apt-get update'
alias remp="sudo aptitude purge"
#---------  Ruby Gems   --------------------
alias gemI='sudo gem install'
alias gemR='sudo gem uninstall'
alias gemU='sudo gem update'
alias gemO='gem outdated'

#------------------------------------------
#---------  Clipboard   -------------------
#xclip is an extremely useful utility that facilitiates copying from cli to clipboard
alias xc='xclip -selection clipboard'
alias xp='xclip'
alias xs='xclip -selection secondary'
alias xo='xclip -o'
alias xoc='xclip -o -selection clipboard'
alias xos='xclip -o -selection secondary'

#------------------------------------------
#---------  Subversion   ------------------
alias sci='svn ci -m'     # Do not forget to include the note
alias scib='svn ci -m ""' # Blank note on checkin
alias sup='svn up'
alias ss='svn status'

#------------------------------------------
#---------  Bash File Management   --------
alias ebash='gedit ~/.bashrc &'
alias ebasha='gedit ~/.bash_aliases &'
alias rbash='source ~/.bashrc'