X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=62ba2e2abfbc9e1d0451eb2e5f41ded4d5a6726f;hb=20f624501f44475d30c5c387587dc2a2f154d046;hp=e94f25ad57442bb35554c2e006e47c4939a56c8c;hpb=d62ce6e88624f5601067e0d5352f453e0888f401;p=grml-etc-core.git 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