bzr.zsh 430 B

12345678910
  1. ## Bazaar integration
  2. ## Just works with the GIT integration just add $(bzr_prompt_info) to the PROMPT
  3. function bzr_prompt_info() {
  4. BZR_CB=`bzr nick 2> /dev/null | grep -v "ERROR" | cut -d ":" -f2 | awk -F / '{print "bzr::"$1}'`
  5. if [ -n "$BZR_CB" ]; then
  6. BZR_DIRTY=""
  7. [[ -n `bzr status` ]] && BZR_DIRTY=" %{$fg[red]%} * %{$fg[green]%}"
  8. echo "$ZSH_THEME_SCM_PROMPT_PREFIX$BZR_CB$BZR_DIRTY$ZSH_THEME_GIT_PROMPT_SUFFIX"
  9. fi
  10. }