From d3a4878b68e8b3217ee26e2604be71e9dd11aad3 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 12:24:38 +0000 Subject: moved to ./Functions/Compctl/cdmatch2 --- Functions/Misc/cdmatch2 | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 Functions/Misc/cdmatch2 (limited to 'Functions/Misc') diff --git a/Functions/Misc/cdmatch2 b/Functions/Misc/cdmatch2 deleted file mode 100644 index 8a3e9591f..000000000 --- a/Functions/Misc/cdmatch2 +++ /dev/null @@ -1,15 +0,0 @@ -# This function should be called from compctl to complete the -# second argument of cd and pushd. - -emulate -R zsh # Requires zsh 3.0-pre4 or later -setopt localoptions extendedglob -local from - -read -Ac from -from="${from[2]}" - -eval "reply=( \${PWD:s@$from@$1*$2@}~$PWD(ND-/:) )" -reply=( "${${reply[@]#${PWD%%$from*}}%${PWD#*$from}}" ) -[[ ${#reply[(r),-1]} != 0 ]] && reply[(r)]="''" - -return -- cgit 1.4.1