]> git.donarmstrong.com Git - zsh.git/commitdiff
don' run initial setup as root
authormartin f. krafft <madduck@madduck.net>
Tue, 6 May 2008 07:21:05 +0000 (08:21 +0100)
committermartin f. krafft <madduck@madduck.net>
Tue, 6 May 2008 07:21:05 +0000 (08:21 +0100)
.zsh/zshrc/85_vcs_prompt

index 63ccb6517abb2440038af2b5d2711f39156edcff..c6b3c79c2a471780b8b5b8d3175dc569db33999b 100644 (file)
@@ -105,9 +105,9 @@ if ! is_root; then
     __vcs_set_prompt_variables
   }
   chpwd_functions+=_update_vcs_prompt_vars
-fi
 
-# call it once
-_update_vcs_prompt_vars
+  # call it once
+  _update_vcs_prompt_vars
+fi
 
 # vim:ft=zsh