diff options
author | Mikhail S. Pobolovets <styx.mp@gmail.com> | 2014-02-02 13:24:35 +0300 |
---|---|---|
committer | ncanceill <nicolas.canceill@ens-cachan.org> | 2014-06-28 10:12:19 +0200 |
commit | 49161e78472b484015c2080f7a724e95d42b4987 (patch) | |
tree | 9ad6352c39fe23d616091a220fa0ca577825a653 /lib/git.zsh | |
parent | 340da08b9ad92654e5e9bb45a1aedc8645f78b74 (diff) | |
download | zsh-49161e78472b484015c2080f7a724e95d42b4987.tar.gz zsh-49161e78472b484015c2080f7a724e95d42b4987.tar.bz2 zsh-49161e78472b484015c2080f7a724e95d42b4987.zip |
Add missing `command` wrapper for git
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
Diffstat (limited to 'lib/git.zsh')
-rw-r--r-- | lib/git.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git.zsh b/lib/git.zsh index df7722721..883bba25c 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -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" |