projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zshrc: Fix mistakes in grml_theme_add_token() help output
[grml-etc-core.git]
/
etc
/
zsh
/
zshrc
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
e94f25a
..
62ba2e2
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-1523,7
+1523,7
@@
function GRML_theme_add_token_usage () {
-i <function> Use a function named \`<function>' to initialise the
value of the token _once_ at runtime.
-i <function> Use a function named \`<function>' 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.
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 () {
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
}
grml_theme_add_token virtual-env -f virtual_env_prompt