diff options
Diffstat (limited to 'Completion/Debian/_apt')
-rw-r--r-- | Completion/Debian/_apt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Debian/_apt b/Completion/Debian/_apt index 74d2dceca..62a38c0a3 100644 --- a/Completion/Debian/_apt +++ b/Completion/Debian/_apt @@ -1,12 +1,12 @@ #compdef apt-get apt-cache apt-cdrom apt-config _apt () { - case "${words[1]:t}" in + case "$service" in apt-get) _apt-get "$@";; apt-cache) _apt-cache "$@";; apt-cdrom) _apt-cdrom "$@";; apt-config) _apt-config "$@";; - *) _message "unknown command $words[1]";; + *) _message "unknown command $service";; esac } |