zshrc: Use %# instead of %% for the `percent' token in the prompt
authorFrank Terbeck <ft@grml.org>
Wed, 6 Mar 2013 11:42:52 +0000 (12:42 +0100)
committerFrank Terbeck <ft@grml.org>
Wed, 6 Mar 2013 11:42:52 +0000 (12:42 +0100)
The "%%" puts a percent sign unconditionally, but we only want the percent for
non-root users. root should still have the "#" sign. This is the fix for that.

Signed-off-by: Frank Terbeck <ft@grml.org>
etc/zsh/zshrc

index 5168e8d..7eb4e76 100644 (file)
@@ -1495,7 +1495,7 @@ grml_prompt_token_default=(
     jobs              '[%j running job(s)] '
     newline           $'\n'
     path              '%40<..<%~%<< '
-    percent           '%% '
+    percent           '% # '
     rc                '%(?..%? )'
     rc-always         '%?'
     sad-smiley        '%(?..:()'