about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-05-23 10:11:18 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-05-23 10:11:18 +0000
commit8a24c5a5ee55ddec6896540de2e042abe009ed1e (patch)
tree53f3afed4752e85ac762c4c878e82f99d47c8fea /Doc
parentdc3668dd20133285416b6a3269c1d7ea81cdd57e (diff)
downloadzsh-8a24c5a5ee55ddec6896540de2e042abe009ed1e.tar.gz
zsh-8a24c5a5ee55ddec6896540de2e042abe009ed1e.tar.xz
zsh-8a24c5a5ee55ddec6896540de2e042abe009ed1e.zip
users/8856, users/8863: which-command stuff
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/contrib.yo12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index dfa8efa3b..2303dccfc 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -858,6 +858,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)