diff options
author | Pablo Rubianes <pablorubianes@gmail.com> | 2013-11-06 20:10:59 -0200 |
---|---|---|
committer | Pablo Rubianes <pablorubianes@gmail.com> | 2013-11-06 20:10:59 -0200 |
commit | efc37c1f715eb77be5f30411fa36589727643126 (patch) | |
tree | 89816294f2b2cb26fd213b100e715855a4c5eada /lib/bzr.zsh | |
parent | e30a1243dc89814e9f31e4b4cc284d948ecbfbd8 (diff) | |
download | zsh-efc37c1f715eb77be5f30411fa36589727643126.tar.gz zsh-efc37c1f715eb77be5f30411fa36589727643126.tar.bz2 zsh-efc37c1f715eb77be5f30411fa36589727643126.zip |
Modification to the frisk theme to work with the BZR lib
Diffstat (limited to 'lib/bzr.zsh')
-rw-r--r-- | lib/bzr.zsh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/bzr.zsh b/lib/bzr.zsh new file mode 100644 index 000000000..005a16500 --- /dev/null +++ b/lib/bzr.zsh @@ -0,0 +1,10 @@ +## Bazaar integration +## Just works with the GIT integration just add $(bzr_prompt_info) to the PROMPT +function bzr_prompt_info() { + BZR_CB=`bzr nick 2> /dev/null | grep -v "ERROR" | cut -d ":" -f2 | awk -F / '{print "bzr::"$1}'` + if [ -n "$BZR_CB" ]; then + BZR_DIRTY="" + [[ -n `bzr status` ]] && BZR_DIRTY=" %{$fg[red]%} * %{$fg[green]%}" + echo "$ZSH_THEME_SCM_PROMPT_PREFIX$BZR_CB$BZR_DIRTY$ZSH_THEME_GIT_PROMPT_SUFFIX" + fi +}
\ No newline at end of file |