- One Letter aliases x=’exit’; alias l=’ls -alFtrG’; alias p=’pwd’; g=’git status’
- user – pwd – git branch in the bash prompt, e.g. durrantm@Castle2012:~/Dropnot/webs/rails_apps/linker (master) with
parse_git_branch () {
git branch 2> /dev/null | sed -e ‘/^[^*]/d’ -e ‘s/* \(.*\)/ (\1)/’
}
PS1=’\[33[01;32m\]\u@\h\[33[00m\]:\[33[01;34m\]\w\[33[01;33m\]$(parse_git_branch)\[33[00m\]\n\$ ‘
(Add above to your .bashrc file) - automatic CDing shopt -s autocd
- git branch completion script (http://git-scm.com/book/en/Git-Basics-Tips-and-Tricks)
- use tmux
- alias hg = ‘history | grep ‘l
- .vimrc file for better editing preferences
- mousing in tmux panes with a .tmux.conf file with set -g mouse-select-pane on & set -g mouse-resize-pane on
- Use locate over find when possible
- alias for current code, e.g. alias q=’cd ~/Dropbox/95_2014/work/code/ruby__rails/ruby/ruby_quiz’