- Clone Git Prompt support
https://github.com/jimeh/git-aware-prompt
to~/.bash/
(~/.bash/git-aware-prompt/
) - Add enclosed Mercurial Prompt support to
~/.bash/
(~/.bash/hg_prompt.sh
) - Integrate both into your
~/.bash_profile
with:
# git prompt
export GITAWAREPROMPT=~/.bash/git-aware-prompt
source "${GITAWAREPROMPT}/main.sh"