diff options
author | Clint Adams <clint@users.sourceforge.net> | 2004-05-01 05:47:38 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2004-05-01 05:47:38 +0000 |
commit | 0056db1cfba5cae47e5043a53c5e09c05dc50e4d (patch) | |
tree | 9b04ff3ab53f1dbc3a307c04036144dc8128ad61 /Completion | |
parent | 039b15b5160e41d727e3a5158601509b1b3dde7d (diff) | |
download | zsh-0056db1cfba5cae47e5043a53c5e09c05dc50e4d.tar.gz zsh-0056db1cfba5cae47e5043a53c5e09c05dc50e4d.tar.xz zsh-0056db1cfba5cae47e5043a53c5e09c05dc50e4d.zip |
* 19863: Completion/Zsh/Type/_command_names, Doc/Zsh/compsys.yo:
allow search path for command names to be overridden by means of new command-path style.
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Zsh/Type/_command_names | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Completion/Zsh/Type/_command_names b/Completion/Zsh/Type/_command_names index a8bf7b481..f2b51713c 100644 --- a/Completion/Zsh/Type/_command_names +++ b/Completion/Zsh/Type/_command_names @@ -33,4 +33,12 @@ fi args=( "$@" ) +local -a cmdpath +if zstyle -a ":completion:${curcontext}" command-path cmdpath && + [[ $#cmdpath -gt 0 ]] +then + local -a +h path + local -A +h commands + path=( $cmdpath ) +fi _alternative -O args "$defs[@]" |