mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-17 00:31:09 +02:00
zsh-workers/8869
This commit is contained in:
parent
fc468377b8
commit
2a1ba77bc6
2 changed files with 12 additions and 2 deletions
|
@ -33,11 +33,13 @@ elif _popd || [[ $PREFIX != (\~|/|./|../)* && $#cdpath -ne 0 ]]; then
|
||||||
# Note we need a tilde because cdablevars also allows user home
|
# Note we need a tilde because cdablevars also allows user home
|
||||||
# directories, hence we also need nonomatch to suppress error messages.
|
# directories, hence we also need nonomatch to suppress error messages.
|
||||||
if [[ -o cdablevars && -n "$PREFIX" && ! -d ${tdir::=${PREFIX%%/*}} &&
|
if [[ -o cdablevars && -n "$PREFIX" && ! -d ${tdir::=${PREFIX%%/*}} &&
|
||||||
-d ${~tdir2::="~$tdir"} ]]; then
|
-d ${~tdir2::="~$tdir"} ]]; then
|
||||||
PREFIX="~$PREFIX"
|
PREFIX="~$PREFIX"
|
||||||
_path_files -/
|
_path_files -/
|
||||||
else
|
else
|
||||||
_path_files -W "(. $cdpath)" -/
|
_alternative \
|
||||||
|
'local-directories:local directories:_path_files -/' \
|
||||||
|
'path-directories: directories in cdpath:_path_files -W \(${cdpath:#.}\) -/'
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
_path_files -/
|
_path_files -/
|
||||||
|
|
|
@ -622,6 +622,10 @@ for names of zsh keymaps
|
||||||
item(tt(keysyms))(
|
item(tt(keysyms))(
|
||||||
for names of X 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))(
|
item(tt(libraries))(
|
||||||
for names of system libraries
|
for names of system libraries
|
||||||
)
|
)
|
||||||
|
@ -667,6 +671,10 @@ for packages (e.g. tt(rpm) packages)
|
||||||
item(tt(parameters))(
|
item(tt(parameters))(
|
||||||
for names of 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))(
|
item(tt(paths))(
|
||||||
used to look up the values of the tt(expand) and tt(cursor) styles
|
used to look up the values of the tt(expand) and tt(cursor) styles
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue