Skip to content

Commit

Permalink
Add missing command wrapper for git
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail S. Pobolovets <[email protected]>
  • Loading branch information
styx authored and ncanceill committed Jun 28, 2014
1 parent 340da08 commit 49161e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# get the name of the branch we are on
function git_prompt_info() {
if [[ "$(git config --get oh-my-zsh.hide-status)" != "1" ]]; then
if [[ "$(command git config --get oh-my-zsh.hide-status)" != "1" ]]; then
ref=$(command git symbolic-ref HEAD 2> /dev/null) || \
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return 0
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX"
Expand Down

0 comments on commit 49161e7

Please sign in to comment.