From 1eb69e9a795cc19450178c07d8d382622bc7ad70 Mon Sep 17 00:00:00 2001 From: Pedro Pereira Date: Fri, 16 Oct 2026 15:19:13 -0300 Subject: first commit --- .config/zsh/oh-my-zsh/lib/bzr.zsh | 14 ++++++++++++++ 1 file changed, 14 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..78273d5 --- /dev/null +++ b/.config/zsh/oh-my-zsh/lib/bzr.zsh @@ -0,0 +1,14 @@ +## Bazaar integration +## Just works with the GIT integration. Add $(bzr_prompt_info) to the PROMPT +function bzr_prompt_info() { + local bzr_branch + bzr_branch=$(bzr nick 2>/dev/null) || return + + if [[ -n "$bzr_branch" ]]; then + local bzr_dirty="" + if [[ -n $(bzr status 2>/dev/null) ]]; then + bzr_dirty=" %{$fg[red]%}*%{$reset_color%}" + fi + printf "%s%s%s%s" "$ZSH_THEME_SCM_PROMPT_PREFIX" "bzr::${bzr_branch##*:}" "$bzr_dirty" "$ZSH_THEME_GIT_PROMPT_SUFFIX" + fi +} -- cgit v1.3