Permalink
Browse files

Initial commit: added bashrc.

  • Loading branch information...
0 parents commit 89a613eaf77f324a5285b7039c2758b88f0a8062 @nelstrom committed Mar 18, 2010
Showing with 33 additions and 0 deletions.
  1. +33 −0 bashrc
33 bashrc
@@ -0,0 +1,33 @@
+echo "loading .bashrc"
+
+# Bash customisations to be syncronised between machines.
+export PS1='\[\e[1;34m\][\u@\h \W]\$\[\e[0m\] '
+
+# History
+export HISTCONTROL=erasedups # when adding an item to history, delete itentical commands upstream
+export HISTSIZE=10000 # save 10000 items in history
+shopt -s histappend # append history to ~\.bash_history when exiting shell
+
+# Lazy aliases
+alias l='ls -l'
+alias la='ls -Al'
+alias ..='cd ..'
+alias tree='tree -C'
+alias trls='tree -C | less -R' # -C outputs colour, -R makes less understand color
+
+# Rails aliases
+alias sc='./script/console'
+alias sg='./script/generate'
+alias ss='./script/server'
+alias sp='./script/server -e production'
+alias t='rake spec'
+alias ta='autotest -rails'
+alias m='rake db:migrate'
+
+# SVN aliases
+alias svnrmd="svn st | grep '^\?' | awk '{print $2}' | xargs svn add"
+alias svnadd="svn st | grep '^\!' | awk '{print $2}' | xargs svn rm"
+
+
+# Reload .bashrc
+alias refresh='. ~/.bashrc'

0 comments on commit 89a613e

Please sign in to comment.