summary refs log tree commit diff
path: root/Functions/cdmatch2
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-12 22:59:04 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-12 22:59:04 +0000
commit8d1b4b1358db02d6c9426e4bb3553583e11bf112 (patch)
treea3095364536d55f8356ac99559e440cc91f33eb1 /Functions/cdmatch2
parent5714953c514a5fea35dcd819caf1afef4d92a13b (diff)
downloadzsh-8d1b4b1358db02d6c9426e4bb3553583e11bf112.tar.gz
zsh-8d1b4b1358db02d6c9426e4bb3553583e11bf112.tar.xz
zsh-8d1b4b1358db02d6c9426e4bb3553583e11bf112.zip
Sync up with zsh-3_1_6-pws-1.
Diffstat (limited to 'Functions/cdmatch2')
-rw-r--r--Functions/cdmatch215
1 files changed, 0 insertions, 15 deletions
diff --git a/Functions/cdmatch2 b/Functions/cdmatch2
deleted file mode 100644
index c70357a34..000000000
--- a/Functions/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
-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