This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# append the following to bash profile | |
# ~/.bash_profile or #~/.bashrc | |
export PATH="$PATH:~/bin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Customise BASH PS1 prompt to show current GIT branch, colour coded to inform user if there are any uncomitted changes. | |
# by Cathal Browne - http://ninjazebra.com | |
# Inspired by http://mediadoneright.com/content/ultimate-git-ps1-bash-prompt | |
### Detects if your current directory is a git repository | |
### If a git repository | |
#### Displays current branch name: | |
##### in green if no uncommited changes |