mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
completions/usermod: various fixes
* -a does not take arguments * -e more helpful description * -g add arguments * -G fix arguments * add -r to various options
This commit is contained in:
parent
82ef2d19a5
commit
76306c4582
1 changed files with 19 additions and 18 deletions
|
@ -1,22 +1,23 @@
|
|||
complete -c usermod -a "(__fish_complete_users)" -f
|
||||
complete -c usermod -s a -l append -d 'Append groups (use with -G)' -f -a "(__fish_complete_groups)"
|
||||
complete -c usermod -s c -l comment -d "Change user's password file comment" -f
|
||||
complete -c usermod -s d -l home -d "Change user's login directory"
|
||||
complete -c usermod -s e -l expiredate -d "Date on which the user account will be disabled" -f
|
||||
complete -c usermod -s f -l inactive -d "Number of days after a password expires until the account is locked" -f
|
||||
complete -c usermod -s g -l gid -d "Group name or number of the user's new initial login group" -f
|
||||
complete -c usermod -s G -l groups -d "List of groups which the user is also a member of" -f -a "(__fish_complete_groups)"
|
||||
complete -c usermod -s l -l login -d "Change user's name" -f
|
||||
complete -c usermod -xa "(__fish_complete_users)"
|
||||
complete -c usermod -s a -l append -d "Append groups (use with -G)"
|
||||
complete -c usermod -s c -l comment -d "Change user's password file comment" -x
|
||||
complete -c usermod -s d -l home -d "Change user's login directory" -r
|
||||
complete -c usermod -s e -l expiredate -d "Date (YYYY-MM-DD) on which the user account will be disabled" -x
|
||||
complete -c usermod -s f -l inactive -d "Number of days after a password expires until the account is locked" -xa "(seq 0 365)"
|
||||
complete -c usermod -s g -l gid -d "Group name or number of the user's new initial login group" -xa "(__fish_complete_groups)"
|
||||
complete -c usermod -s G -l groups -d "List of groups which the user is also a member of" -xa "(__fish_complete_list , __fish_complete_groups)"
|
||||
complete -c usermod -s l -l login -d "Change user's name" -x
|
||||
complete -c usermod -s L -l lock -d "Lock user's password" -f
|
||||
complete -c usermod -s m -l move-home -d "Move the content of the user's home directory to the new location" -f
|
||||
complete -c usermod -s o -l non-unique -d "Allow non-unique UID" -f
|
||||
complete -c usermod -s p -l password -d "The encrypted password, as returned by crypt(3)" -f
|
||||
complete -c usermod -s R -l root -d "Apply changes in this directory" -f
|
||||
complete -c usermod -s s -l shell -d "The name of the user's new login shell" -f
|
||||
complete -c usermod -s u -l uid -d "The new numerical value of the user's ID" -f
|
||||
complete -c usermod -s p -l password -d "The encrypted password, as returned by crypt(3)" -x
|
||||
complete -c usermod -s R -l root -d "Apply changes in this directory" -x
|
||||
complete -c usermod -s P -l prefix -d "Apply changes in the PREFIX_DIR" -x
|
||||
complete -c usermod -s s -l shell -d "The name of the user's new login shell" -x
|
||||
complete -c usermod -s u -l uid -d "The new numerical value of the user's ID" -x
|
||||
complete -c usermod -s U -l unlock -d "Unlock a users password" -f
|
||||
complete -c usermod -s v -l add-sub-uids -d "Add a range of subordinate uids to the user's account" -f
|
||||
complete -c usermod -s V -l del-sub-uids -d "Remove a range of subordinate uids from the user's account" -f
|
||||
complete -c usermod -s w -l add-sub-gids -d "Add a range of subordinate gids to the user's account" -f
|
||||
complete -c usermod -s W -l del-sub-gids -d "Remove a range of subordinate gids from the user's account" -f
|
||||
complete -c usermod -s Z -l selinux-user -d "The new SELinux user for the user's login" -f
|
||||
complete -c usermod -s v -l add-sub-uids -d "Add a range of subordinate uids to the user's account" -x
|
||||
complete -c usermod -s V -l del-sub-uids -d "Remove a range of subordinate uids from the user's account" -x
|
||||
complete -c usermod -s w -l add-sub-gids -d "Add a range of subordinate gids to the user's account" -x
|
||||
complete -c usermod -s W -l del-sub-gids -d "Remove a range of subordinate gids from the user's account" -x
|
||||
complete -c usermod -s Z -l selinux-user -d "The new SELinux user for the user's login" -x
|
||||
|
|
Loading…
Reference in a new issue