Skip to content

Instantly share code, notes, and snippets.

@smalot
Created November 12, 2015 14:28
Show Gist options
  • Save smalot/450c337692044610955d to your computer and use it in GitHub Desktop.
Save smalot/450c337692044610955d to your computer and use it in GitHub Desktop.
Install Git aware
# https://github.com/jimeh/git-aware-prompt
mkdir ~/.bash
cd ~/.bash
git clone git://github.com/jimeh/git-aware-prompt.git
# Add at the end of ".bashrc" file
export GITAWAREPROMPT=~/.bash/git-aware-prompt
source $GITAWAREPROMPT/main.sh
export PS1="\u@\h \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "
export SUDO_PS1="\[$bakred\]\u@\h\[$txtrst\] \w\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment