From 20f624501f44475d30c5c387587dc2a2f154d046 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Mon, 18 Mar 2013 20:49:15 +0100 Subject: [PATCH] zshrc: Fix mistakes in grml_theme_add_token() help output Signed-off-by: Frank Terbeck --- etc/zsh/zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.1.4