diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2003-08-22 16:30:28 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2003-08-22 16:30:28 +0000 |
commit | 2270746356368eb20676bbfb26c82c2a06e694ec (patch) | |
tree | 90c91d1100d1145c9d7e6b16cd786b94f1f92f3f /Completion/Unix/Command/_user_admin | |
parent | 2fe227ff13556508ed844e8996c8c3bc8401a4a3 (diff) | |
download | zsh-2270746356368eb20676bbfb26c82c2a06e694ec.tar.gz zsh-2270746356368eb20676bbfb26c82c2a06e694ec.tar.xz zsh-2270746356368eb20676bbfb26c82c2a06e694ec.zip |
tidy up of many completions (updates, fixes, improvements and plain aesthetics)
Diffstat (limited to 'Completion/Unix/Command/_user_admin')
-rw-r--r-- | Completion/Unix/Command/_user_admin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_user_admin b/Completion/Unix/Command/_user_admin index bf0908372..4e7c1d487 100644 --- a/Completion/Unix/Command/_user_admin +++ b/Completion/Unix/Command/_user_admin @@ -7,7 +7,7 @@ redhat=$? if [[ $service = user* ]]; then if [[ -r /etc/shells ]]; then - shells=( $(</etc/shells) ) + shells=( ${${(f)"$(</etc/shells)"}:#\#*} ) else shells=( ${(M)commands:#*/(|[abckz]|tc|ba)sh} ) fi @@ -15,7 +15,7 @@ if [[ $service = user* ]]; then args=( '(-D)-c+[comment]:comment' "(-D)-${home}+[home directory]:home directory:_directories -W /" - '(-D)-e+[specify expriration date]:expiration date (YYYY-MM-DD)' + '(-D)-e+[specify expiration date]:expiration date (YYYY-MM-DD)' '(-D)-f+[specify inactive days]:inactive days' '(-D)-g+[initial group]:initial group:_groups' '(-D)-G+[supplementary groups]:supplementary groups:_groups -S,' @@ -24,7 +24,7 @@ if [[ $service = user* ]]; then '(-D)-u[uid]:uid' '(-D)-o[allow non unique uid]' ) - [[ $OSTYPE = linux* ]] && args=( $args[@] + [[ $OSTYPE = linux* ]] && args=( $args[@] '(-D -U -L)-p+[specify encrypted password]:encrypted password' ) if [[ $service = useradd ]]; then @@ -58,7 +58,7 @@ else '-f[force]' ) else - args=( $args[@] + args=( $args[@] '-n[specify new group name]:new group name' ':group name:_groups' ) |