1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-16 12:21:18 +02:00

zsh-workers/8869

This commit is contained in:
Tanaka Akira 1999-12-03 16:35:57 +00:00
parent fc468377b8
commit 2a1ba77bc6
2 changed files with 12 additions and 2 deletions

View file

@ -33,11 +33,13 @@ elif _popd || [[ $PREFIX != (\~|/|./|../)* && $#cdpath -ne 0 ]]; then
# Note we need a tilde because cdablevars also allows user home
# directories, hence we also need nonomatch to suppress error messages.
if [[ -o cdablevars && -n "$PREFIX" && ! -d ${tdir::=${PREFIX%%/*}} &&
-d ${~tdir2::="~$tdir"} ]]; then
-d ${~tdir2::="~$tdir"} ]]; then
PREFIX="~$PREFIX"
_path_files -/
else
_path_files -W "(. $cdpath)" -/
_alternative \
'local-directories:local directories:_path_files -/' \
'path-directories: directories in cdpath:_path_files -W \(${cdpath:#.}\) -/'
fi
else
_path_files -/

View file

@ -622,6 +622,10 @@ for names of zsh keymaps
item(tt(keysyms))(
for names of X keysyms
)
item(tt(local-directories))(
for names of directories in the current working directory when
completing for the tt(cd) builtin command
)
item(tt(libraries))(
for names of system libraries
)
@ -667,6 +671,10 @@ for packages (e.g. tt(rpm) packages)
item(tt(parameters))(
for names of parameters
)
item(tt(path-directories))(
for names of directories in directories from the tt(cdpath) array when
completing for the tt(cd) builtin command
)
item(tt(paths))(
used to look up the values of the tt(expand) and tt(cursor) styles
)