From: Frank Terbeck Date: Wed, 6 Mar 2013 11:42:52 +0000 (+0100) Subject: zshrc: Use %# instead of %% for the `percent' token in the prompt X-Git-Tag: v0.8.0~24 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=5ef5260128becce09ba1f6ddcc5395892cba3ff2 zshrc: Use %# instead of %% for the `percent' token in the prompt 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 --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 5168e8d..7eb4e76 100644 --- 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 '%(?..:()'