Ohmyzsh: git_prompt_info:2: command not found: current_branch

Created on 24 Oct 2013  ·  3Comments  ·  Source: ohmyzsh/ohmyzsh

I use the 'doubleend' theme. After updating my osx machine to mavericks, some of the features of the theme stopped working. The battery indicator doesn't seem to be working anymore. here's a snapshot
screen shot 2013-10-24 at 12 10 14 pm

Most helpful comment

Solved! Although am yet to get my battery-power indicator that works for me for now. Anyone having this problem just edit the git_prompt_info function in the doubleend theme file: here's the one that solves it:

function git_prompt_info() {
  ref=$(git symbolic-ref HEAD 2> /dev/null) || return
  echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX"
}

All 3 comments

Solved! Although am yet to get my battery-power indicator that works for me for now. Anyone having this problem just edit the git_prompt_info function in the doubleend theme file: here's the one that solves it:

function git_prompt_info() {
  ref=$(git symbolic-ref HEAD 2> /dev/null) || return
  echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX"
}

@pauldd91 thanks, this helped me out

@pauldd91 Almost one year later and this just helped me out too :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sohocoke picture sohocoke  ·  3Comments

mukteshkrmishra picture mukteshkrmishra  ·  3Comments

khipukamayuq picture khipukamayuq  ·  3Comments

samsondav picture samsondav  ·  3Comments

leongaban picture leongaban  ·  3Comments