mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-30 14:53:11 +00:00
68527ff20c
This ends up saving a surprising number of bytes.
22 lines
1.8 KiB
Fish
22 lines
1.8 KiB
Fish
#
|
|
# Command specific completions for the useradd command.
|
|
# These completions where generated from the commands
|
|
# man page by the make_completions.py script, but may
|
|
# have been hand edited since.
|
|
#
|
|
|
|
complete -c useradd -s c -l comment -d 'A comment about this user' -r
|
|
complete -c useradd -s d -l home -d 'Home directory for the new user' -x -a '(__fish_complete_directories)'
|
|
complete -c useradd -s G -l groups -d 'Supplementary groups' -xa '(__fish_append , (cut -d : -f 1 /etc/group))'
|
|
complete -c useradd -s h -l help -d 'Display help message and exit'
|
|
complete -c useradd -s m -l create-home -d 'The user\'s home directory will be created if it does not exist'
|
|
complete -c useradd -s n -d 'A group having the same name as the user being added to the system will be created by default (when -g is not specified)'
|
|
complete -c useradd -s K -l key -d 'Overrides default key/value pairs from /etc/login'
|
|
complete -c useradd -s o -l non-unique -d 'Allow the creation of a user account with a duplicate (non-unique) UID'
|
|
complete -c useradd -s p -l password -d 'The encrypted password, as returned by crypt(3)' -r
|
|
complete -c useradd -s u -l uid -d 'The numerical value of the user\'s ID' -r
|
|
complete -c useradd -s b -l base-dir -d 'The initial path prefix for a new user\'s home directory' -r -a '(__fish_complete_directories)'
|
|
complete -c useradd -s e -l expiredate -d 'The date on which the user account is disabled' -r
|
|
complete -c useradd -s f -l inactive -d 'The number of days after a password has expired before the account will be disabled' -r
|
|
complete -c useradd -s g -l gid -d 'The group name or ID for a new user\'s initial group' -x -a '(string match -r "^[^#].*" < /etc/group | cut -d : -f 1,3 | string replace -a ":" \n)'
|
|
complete -c useradd -s s -l shell -d 'Name of the new user\'s login shell' -x -a '(string match -r "^[^#].*" < /etc/shells)'
|