about summary refs log tree commit diff
path: root/Functions/Prompts/prompt_clint_setup
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-11-22 19:15:17 +0000
committerClint Adams <clint@users.sourceforge.net>2007-11-22 19:15:17 +0000
commit30e6668678abec90536b97fc241d7a870738a376 (patch)
treee7f021351073af4bc24d4ba3df0334271ce5235c /Functions/Prompts/prompt_clint_setup
parentc406f4366e47515f1a740df56ec0e32cdcb429bf (diff)
downloadzsh-30e6668678abec90536b97fc241d7a870738a376.tar.gz
zsh-30e6668678abec90536b97fc241d7a870738a376.tar.xz
zsh-30e6668678abec90536b97fc241d7a870738a376.zip
unposted: fix typo in git psvar assignment.
Diffstat (limited to 'Functions/Prompts/prompt_clint_setup')
-rw-r--r--Functions/Prompts/prompt_clint_setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Prompts/prompt_clint_setup b/Functions/Prompts/prompt_clint_setup
index 6cf76db72..a9960a016 100644
--- a/Functions/Prompts/prompt_clint_setup
+++ b/Functions/Prompts/prompt_clint_setup
@@ -66,7 +66,7 @@ prompt_clint_precmd () {
 
   git_dir=$(git-rev-parse --git-dir 2> /dev/null) || return
   git_ref=$(git-symbolic-ref HEAD 2> /dev/null) || git_ref="(no branch)"
-  psvar[2]=${ref#refs/heads/}
+  psvar[2]=${git_ref#refs/heads/}
 
 }