1#
2# Command specific completions for the adduser command.
3# These completions where generated from the commands
4# man page by the make_completions.py script, but may
5# have been hand edited since.
6#
7
8complete -x -c adduser -a "(__fish_complete_users; __fish_complete_groups)"
9complete -c adduser -l conf -d 'Specify config file' -r
10complete -c adduser -l disabled-login -d 'Do not run passwd to set the password'
11complete -c adduser -l disabled-password -d 'Do not set password, but allow non-password logins (e.g. SSH RSA)'
12complete -c adduser -l force-badname -d 'Apply only a weak check for validity of the user/group name'
13complete -c adduser -l gecos -d 'Set the gecos field for the new entry generated' -r
14complete -c adduser -l gid -d 'When creating a group, force the groupid to be the given number' -r
15complete -c adduser -l group -d 'Create a group'
16complete -c adduser -l help -d 'Display brief instructions'
17complete -c adduser -l home -d 'Use specified directory as the user\'s home directory' -x -a '(__fish_complete_directories)'
18complete -c adduser -l shell -d 'Use shell as the user\'s login shell, rather than the default' -x -a '(cat /etc/shells)'
19complete -c adduser -l ingroup -d 'Add the new user to GROUP instead of a usergroup or the default group' -x -a '(cut -d : -f 1 /etc/group)'
20complete -c adduser -l no-create-home -d 'Do not create the home directory'
21complete -c adduser -l quiet -d 'Suppress informational messages, only show warnings and errors'
22complete -c adduser -l debug -d 'Be verbose, most useful if you want to nail down a problem with adduser'
23complete -c adduser -l system -d 'Create a system user or group'
24complete -c adduser -l uid -d 'Force the new userid to be the given number' -r
25complete -c adduser -l firstuid -d 'Override the first uid in the range that the uid is chosen from (FIRST_UID)' -r
26complete -c adduser -l lastuid -d 'ID Override the last uid in the range that the uid is chosen from (LAST_UID)' -r
27complete -c adduser -l add_extra_groups -d 'Add new user to extra groups defined in the configuration file'
28complete -c adduser -l version -d 'Display version and copyright information'
29