Archive for the 'Unix' Category

Getting Git, Subversion and Bazaar Version Control Information into your Bash Prompt

Here are some must have bash PS1 commands if you’re working in multiple branches with various SCMs like git, svn or bzr. With this in your .bash_profile you’ll end up getting the following PS1

wesmaldonado:(git)gchartrb[master]/$ wesmaldonado:(svn)wumpus_project[trunk:141279]/$

Found at Lazy Bash cd aliases. The latest can be pulled from github:


Command Line History Meme

I’ve fallen victim to the command line history meme… I’m not sure this is a good representation of a normal day, I’ll have to compare it against Monday to see how it compares.

wesmaldonado:~/workspace/foo wesmaldonado$ history|awk ‘{a[$2]++} END{for(i in a){printf “%5d\t%s\n”,a[i],i}}’|sort -rn|head 73 rake 68 [...]