From 35b2633ad941966f5fca07b625a594a5b68c0fdb Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 15 Nov 1999 12:01:46 +0000 Subject: manual/8639 --- Completion/Builtins/_popd | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Completion/Builtins/_popd') diff --git a/Completion/Builtins/_popd b/Completion/Builtins/_popd index 5e4910f48..9b9b0d048 100644 --- a/Completion/Builtins/_popd +++ b/Completion/Builtins/_popd @@ -7,14 +7,13 @@ setopt extendedglob nonomatch -_tags any directory-stack || return 1 +local expl list lines revlines disp -! _style directory-stack prefix-needed yes || - [[ $PREFIX = [-+]* ]] || return 1 +_wanted directory-stack -V expl 'directory stack' || return 1 -local expl list lines revlines disp +! _style directory-stack prefix-needed || [[ $PREFIX = [-+]* ]] || return 1 -if _style directory-stack description yes; then +if _style directory-stack description; then # get the list of directories with their canonical number # and turn the lines into an array, removing the current directory lines=("${PWD}" "${dirstack[@]}") @@ -39,5 +38,4 @@ else disp=() fi -_description -V expl 'directory stack index' compadd "$expl[@]" "$@" -qS/ "$disp[@]" -Q - "$list[@]" -- cgit 1.4.1