diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-03-23 12:44:21 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-03-23 12:44:21 +0000 |
commit | 9ef6eed52a5cdba96bb95711eadd71d21bd81388 (patch) | |
tree | 425b90323308520728280b3a844f262255031a4b /Completion/User/_init_d | |
parent | a78c8b50a05efc0bc8b4cded184099b962ea6bbc (diff) | |
download | zsh-9ef6eed52a5cdba96bb95711eadd71d21bd81388.tar.gz zsh-9ef6eed52a5cdba96bb95711eadd71d21bd81388.tar.xz zsh-9ef6eed52a5cdba96bb95711eadd71d21bd81388.zip |
add commands and call-command styles; mention some of the more expensive things about completion setup in the docs (13727)
Diffstat (limited to 'Completion/User/_init_d')
-rwxr-xr-x | Completion/User/_init_d | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/User/_init_d b/Completion/User/_init_d index 93065cd80..280b0a9af 100755 --- a/Completion/User/_init_d +++ b/Completion/User/_init_d @@ -17,6 +17,7 @@ read -u0k 2 magic < $words[1] && [[ $magic = '#!' ]] && # # cmds=( ${${(j:|:s:|:)${(M)${(f)"$(< $words[1])"}:#[[:blank:]]#(\'|)[a-z_|]##(\'|)\)}}//[^a-z_]} ) -(( $#cmds )) || cmds=(start stop) +(( $#cmds )) || zstyle -a ":completion:${curcontext}:commands" commands cmds || + cmds=(start stop) _sub_commands $cmds |