diff options
author | Clint Adams <clint@users.sourceforge.net> | 2006-11-02 00:06:38 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2006-11-02 00:06:38 +0000 |
commit | 8dfddcaaf4fff93ddd49cd30b8067bdc903ddcd9 (patch) | |
tree | 8f12cc194220ae66058f3596a2c0c5a586debfeb | |
parent | 9471bbcfa06a87dcb6803a36d1208c214fa56003 (diff) | |
download | zsh-8dfddcaaf4fff93ddd49cd30b8067bdc903ddcd9.tar.gz zsh-8dfddcaaf4fff93ddd49cd30b8067bdc903ddcd9.tar.xz zsh-8dfddcaaf4fff93ddd49cd30b8067bdc903ddcd9.zip |
22947: minor mkdir completion fixes.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_mkdir | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog index f0709eda9..624089765 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-11-02 Clint Adams <clint@zsh.org> + + * 22947: R. Ramkumar: Completion/Unix/Command/_mkdir: + minor mkdir completion fixes. + 2006-11-01 Peter Stephenson <pws@csr.com> * 22934, with modifications (c.f. 22937): INSTALL, README, diff --git a/Completion/Unix/Command/_mkdir b/Completion/Unix/Command/_mkdir index b922875f3..927b9dfe9 100644 --- a/Completion/Unix/Command/_mkdir +++ b/Completion/Unix/Command/_mkdir @@ -5,23 +5,23 @@ local curcontext="$curcontext" line state \ typeset -a opt_args args=( - '(-m --mode=)'{-m,--mode=}'[set permission mode]:numeric mode' + '(-m --mode)'{-m,--mode=}'[set permission mode]:numeric mode' '(-p --parents)'{-p,--parents}'[make parent directories as needed]' ) -args_zsh=('(-)*: :->dir') +args_zsh=('(-)*: :->directories') args_cmd=( '(-v --verbose)'{-v,--verbose}'[print message for each created directory]' '(- :)--help[display help information]' '(- :)--version[display version information]' - '*: :->dir' + '*: :->directories' ) case "$OSTYPE" in linux*) args_cmd=( - '(-Z --context=)'{-Z,--context=}'[set SELinux context]:SELinux context' + '(-Z --context)'{-Z,--context=}'[set SELinux context]:SELinux context' $args_cmd) ;; esac @@ -56,10 +56,10 @@ fi _arguments -C -s $args && ret=0 case "$state" in - dir) + directories) if (( $ret )) && [[ ! -prefix - ]] || \ [[ $variant == zsh && ${#${${words[2,-1]}:#-*}} -gt 0 ]]; then - _wanted parent-directory expl \ + _wanted directories expl \ 'parent directory (alternatively specify name of directory)' \ _path_files -/ || _message 'name of directory' ret=0 |