about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:24:38 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:24:38 +0000
commitd3a4878b68e8b3217ee26e2604be71e9dd11aad3 (patch)
tree42040edd11f8496d33af4947aa9cc2b12b79a1ad /Functions
parent716227e5e59bdc60d426ad5ad7d582e3060ff548 (diff)
downloadzsh-d3a4878b68e8b3217ee26e2604be71e9dd11aad3.tar.gz
zsh-d3a4878b68e8b3217ee26e2604be71e9dd11aad3.tar.xz
zsh-d3a4878b68e8b3217ee26e2604be71e9dd11aad3.zip
moved to ./Functions/Compctl/cdmatch2
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Misc/cdmatch215
1 files changed, 0 insertions, 15 deletions
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