diff options
| author | Robby Russell <robby@planetargon.com> | 2013-12-02 22:37:28 -0800 | 
|---|---|---|
| committer | Robby Russell <robby@planetargon.com> | 2013-12-02 22:37:28 -0800 | 
| commit | fb614a0e80b507e847007d76b9d20ab2828b3af5 (patch) | |
| tree | 89187da17c768afd1b2570e0d1aeedcdb13bde85 /lib | |
| parent | 9357f2f41de512106c995991a731318ac462d599 (diff) | |
| parent | 248890b6e699365dee469178ec96f5d1fad91871 (diff) | |
| download | zsh-fb614a0e80b507e847007d76b9d20ab2828b3af5.tar.gz zsh-fb614a0e80b507e847007d76b9d20ab2828b3af5.tar.bz2 zsh-fb614a0e80b507e847007d76b9d20ab2828b3af5.zip | |
Merge pull request #2229 from prubianes/master
Bazaar Integration Lib
Diffstat (limited to 'lib')
| -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 | 
