summary refs log tree commit diff
path: root/Completion/Bsd/_bsd_pkg
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Bsd/_bsd_pkg')
-rw-r--r--Completion/Bsd/_bsd_pkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Bsd/_bsd_pkg b/Completion/Bsd/_bsd_pkg
index f302f8216..5089bc1a3 100644
--- a/Completion/Bsd/_bsd_pkg
+++ b/Completion/Bsd/_bsd_pkg
@@ -13,7 +13,7 @@ _bsd_pkg_packages() {
 }
 
 _bsd_pkg() {
-  case "${words[1]:t}" in
+  case "$service" in
   pkg_add)
     _arguments -s \
         '-v[be verbose]' \