From 8a2e1006b3b272126332aa064f3ad95387129544 Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Thu, 13 Feb 2025 14:13:49 +0530 Subject: new dot files --- .config/zsh/oh-my-zsh/lib/bzr.zsh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .config/zsh/oh-my-zsh/lib/bzr.zsh (limited to '.config/zsh/oh-my-zsh/lib/bzr.zsh') diff --git a/.config/zsh/oh-my-zsh/lib/bzr.zsh b/.config/zsh/oh-my-zsh/lib/bzr.zsh new file mode 100644 index 0000000..005a165 --- /dev/null +++ b/.config/zsh/oh-my-zsh/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 -- cgit v1.2.3-59-g8ed1b