diff options
Diffstat (limited to 'Completion/User')
-rwxr-xr-x | Completion/User/_init_d | 3 | ||||
-rw-r--r-- | Completion/User/_make | 3 |
2 files changed, 4 insertions, 2 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 diff --git a/Completion/User/_make b/Completion/User/_make index 958e2a5af..7c7bbdae3 100644 --- a/Completion/User/_make +++ b/Completion/User/_make @@ -32,7 +32,8 @@ else fi if [[ -n "$file" ]] && _tags targets; then - if [[ -n "$_is_gnu[$words[1]]" ]]; then + if [[ -n "$_is_gnu[$words[1]]" ]] && + zstyle -t ":completion:${curcontext}:targets" call-command; then tmp=( $(_call targets "$words[1]" -nsp --no-print-directory -f "$file" .PHONY 2> /dev/null | awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}' FS=:) ) else tmp=( |