diff options
author | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-04-29 02:06:43 +0000 |
---|---|---|
committer | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-04-29 02:06:43 +0000 |
commit | cedc5f8e1f8916202da403a08b77600a7271fbe3 (patch) | |
tree | 6e2f580e4f0d4d28c50120996e2f970cf57deb30 /Doc/Zsh | |
parent | acc438a775cfe547f55e2fb2e705567d661b323b (diff) | |
download | zsh-cedc5f8e1f8916202da403a08b77600a7271fbe3.tar.gz zsh-cedc5f8e1f8916202da403a08b77600a7271fbe3.tar.xz zsh-cedc5f8e1f8916202da403a08b77600a7271fbe3.zip |
Merge of users/8863: which-command stuff.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/contrib.yo | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index 1fc3458f3..f1fa0e9e9 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -867,6 +867,18 @@ example(zle -N insert-last-assignment smart-insert-last-word zstyle :insert-last-assignment match '[[:alpha:]][][[:alnum:]]#=*' bindkey '\e=' insert-last-assignment) ) +tindex(which-command) +item(tt(which-command))( +This function is a drop-in replacement for the builtin widget +tt(which-command). It has enhanced behaviour, in that it correctly +detects whether or not the command word needs to be expanded as an +alias; if so, it continues tracing the command word from the expanded +alias until it reaches the command that will be executed. + +The style tt(whence) is available in the context tt(:zle:$WIDGET); this +may be set to an array to give the command and options that will be used to +investigate the command word found. The default is tt(whence -c). +) enditem() subsect(Styles) |