projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
226d414
)
zshrc: Use %# instead of %% for the `percent' token in the prompt
author
Frank Terbeck
<ft@grml.org>
Wed, 6 Mar 2013 11:42:52 +0000
(12:42 +0100)
committer
Frank 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
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
5168e8d
..
7eb4e76
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-1495,7
+1495,7
@@
grml_prompt_token_default=(
jobs '[%j running job(s)] '
newline $'\n'
path '%40<..<%~%<< '
- percent '%
%
'
+ percent '%
#
'
rc '%(?..%? )'
rc-always '%?'
sad-smiley '%(?..:()'