From: Frank Terbeck Date: Mon, 18 Mar 2013 19:49:15 +0000 (+0100) Subject: zshrc: Fix mistakes in grml_theme_add_token() help output X-Git-Tag: v0.8.0~16 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=20f624501f44475d30c5c387587dc2a2f154d046 zshrc: Fix mistakes in grml_theme_add_token() help output Signed-off-by: Frank Terbeck --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index e94f25a..62ba2e2 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1523,7 +1523,7 @@ function GRML_theme_add_token_usage () { -i Use a function named \`' to initialise the value of the token _once_ at runtime. - The functions are called with one argument: the tokens new name. The + The functions are called with one argument: the token's new name. The return value is expected in the \$REPLY parameter. The use of these options is mutually exclusive. @@ -1537,7 +1537,7 @@ function GRML_theme_add_token_usage () { Another example would be support for \$VIRTUAL_ENV: function virtual_env_prompt () { - REPLY=${VIRTUAL_ENV+${VIRTUAL_ENV:t} } + REPLY=\${VIRTUAL_ENV+\${VIRTUAL_ENV:t} } } grml_theme_add_token virtual-env -f virtual_env_prompt