From fd25b24df6b4f098944c4994195d3894a27a8208 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 31 May 2000 09:38:25 +0000 Subject: use compadd -[ak] (11549) --- Completion/Builtins/_unhash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Builtins/_unhash') diff --git a/Completion/Builtins/_unhash b/Completion/Builtins/_unhash index b99c00ad3..a8f366180 100644 --- a/Completion/Builtins/_unhash +++ b/Completion/Builtins/_unhash @@ -7,8 +7,8 @@ _arguments -C -s \ '(-d -f *)-a[remove aliases]:*:aliases:_aliases' \ '(-d -a *)-f[remove functions]:*:functions:_functions' \ '-m[treat arguments as patterns]' \ - '*:commands:_command_names -e' && return 0 + '*:commands: _command_names -e' && return 0 if [[ "$state" = nameddir ]]; then - _wanted nameddir expl 'named directory' compadd - ${(@k)nameddirs} + _wanted nameddir expl 'named directory' compadd -k nameddirs fi -- cgit 1.4.1