summary refs log tree commit diff
path: root/Functions/cdmatch
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/cdmatch
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/cdmatch')
-rwxr-xr-xFunctions/cdmatch23
1 files changed, 0 insertions, 23 deletions
diff --git a/Functions/cdmatch b/Functions/cdmatch
deleted file mode 100755
index 7c4bb9ae7..000000000
--- a/Functions/cdmatch
+++ /dev/null
@@ -1,23 +0,0 @@
-# Start of cdmatch.
-# Save in your functions directory and autoload, then do
-# compctl -x 'S[/][~][./][../]' -g '*(-/)' - \
-#         'n[-1,/], s[]' -K cdmatch -S '/' -- cd pushd
-#
-# Completes directories for cd, pushd, ... anything which knows about cdpath.
-# You do not have to include `.' in your cdpath.
-#
-# It works properly only if $ZSH_VERSION > 3.0-pre4.  Remove `emulate -R zsh'
-# for all other values of $ZSH_VERSION > 2.6-beta2. For earlier versions
-# it still works if RC_EXPAND_PARAM is not set or when cdpath is empty.
-emulate -R zsh
-setopt localoptions
-local narg pref cdp
-
-read -nc narg
-read -Ac pref
-
-cdp=(. $cdpath)
-reply=( ${^cdp}/${pref[$narg]%$2}*$2(-/DN^M:t) )
-
-return
-# End of cdmatch.