Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git_prompt_info:2: command not found: current_branch #2193

Closed
dariye opened this issue Oct 24, 2013 · 3 comments
Closed

git_prompt_info:2: command not found: current_branch #2193

dariye opened this issue Oct 24, 2013 · 3 comments

Comments

@dariye
Copy link

dariye commented Oct 24, 2013

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

@dariye
Copy link
Author

dariye commented Oct 30, 2013

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"
}

@dariye dariye closed this as completed Oct 30, 2013
@BrianGilbert
Copy link

@pauldd91 thanks, this helped me out

@jenzz
Copy link

jenzz commented Oct 25, 2014

@pauldd91 Almost one year later and this just helped me out too 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants