mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
42214: use less general names on new functions for completing file flags and modes
This commit is contained in:
parent
c789efbaf0
commit
21a09a1418
7 changed files with 10 additions and 4 deletions
|
@ -1,5 +1,11 @@
|
|||
2018-01-04 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||
|
||||
* dana: 42214: Completion/BSD/Type/_file_flags,
|
||||
Completion/Unix/Type/_file_modes, Completion/Unix/Command/_find,
|
||||
Completion/Unix/Command/_mkdir, Completion/BSD/Command/_chflags,
|
||||
Completion/Unix/Command/_chmod: use less general names on new
|
||||
functions for completing file flags and modes
|
||||
|
||||
* github #21: Maciek Makowski:
|
||||
Completion/Linux/Command/_networkmanager: update nmcli
|
||||
completions to be compatible with recent version 1.8.4
|
||||
|
|
|
@ -12,7 +12,7 @@ if [[ $OSTYPE = (darwin|dragonfly|freebsd)* ]]; then
|
|||
fi
|
||||
|
||||
_arguments -s -A "-*" : $args \
|
||||
': :_flags' \
|
||||
': :_file_flags' \
|
||||
'*:file:_files "$own"' \
|
||||
- opth \
|
||||
'-h[act on symlinks]' \
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
local curcontext="$curcontext" state line expl ret=1
|
||||
local -a args privs
|
||||
|
||||
args=( '*: :->files' '1: :_modes' )
|
||||
args=( '*: :->files' '1: :_file_modes' )
|
||||
|
||||
if _pick_variant gnu=Free\ Soft unix --version; then
|
||||
args+=(
|
||||
|
|
|
@ -139,7 +139,7 @@ _arguments -C $args \
|
|||
'*-nogroup' \
|
||||
'*-nouser' \
|
||||
'*-ok:program: _command_names -e:*\;::program arguments: _normal' \
|
||||
'*-perm: :_modes' \
|
||||
'*-perm: :_file_modes' \
|
||||
'*-print' \
|
||||
'*-prune' \
|
||||
'*-size:file size (blocks)' \
|
||||
|
|
|
@ -4,7 +4,7 @@ local curcontext="$curcontext" state line expl args variant ret=1
|
|||
typeset -A opt_args
|
||||
|
||||
args=(
|
||||
'(-m --mode)'{-m,--mode=}'[set permission mode]: :_modes'
|
||||
'(-m --mode)'{-m,--mode=}'[set permission mode]: :_file_modes'
|
||||
'(-p --parents)'{-p,--parents}'[make parent directories as needed]'
|
||||
'(-)*: :->directories'
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue