DBI-Link is now on Github!
Here's how I did it:
Continue reading "Free Your DBI-Link, and the Rest Will Follow" »
Wednesday, March 3. 2010
Git + bash = win
Modern git comes with a great way to improve your life: git-completion.bash. To use it, just add the following to your .bashrc:
Once you've done this, any time you're in a git subdirectory, the branch name will appear in your PS1.
Any time you're not, it won't.
Simple!
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
export PS1='\h:\u:\w $(__git_ps1 "(%s) ")'
fi
Once you've done this, any time you're in a git subdirectory, the branch name will appear in your PS1.
Any time you're not, it won't.
Simple!
(Page 1 of 1, totaling 3 entries)