fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
9d7e0b281
master
1# 2# Command specific completions for the useradd 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 -c useradd -s c -l comment -d'A comment about this user' -r 9complete -c useradd -s d -l home -d'Home directory for the new user' -x -a'(__fish_complete_directories)' 10complete -c useradd -s G -l groups -d'Supplementary groups' -xa'(__fish_append , (string split -f1 : /etc/group))' 11complete -c useradd -s h -l help -d'Display help message and exit' 12complete -c useradd -s m -l create-home -d'The user\'s home directory will be created if it does not exist' 13complete -c useradd -s n -d'Create group with name of added user if -g is not specified' 14complete -c useradd -s K -l key -d'Overrides default key/value pairs from /etc/login' 15complete -c useradd -s o -l non-unique -d'Allow user account with a duplicate UID' 16complete -c useradd -s p -l password -d'The encrypted password, as returned by crypt(3)' -r 17complete -c useradd -s u -l uid -d'The numerical value of the user\'s ID' -r 18complete -c useradd -s b -l base-dir -d'The initial path prefix for a new user\'s home directory' -r -a'(__fish_complete_directories)' 19complete -c useradd -s e -l expiredate -d'The date on which the user account is disabled' -r 20complete -c useradd -s f -l inactive -d'Number of days to disable account after password expiration' -r 21complete -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 | string split -f1,3 ":" | string join ":" | string replace -a ":" \n)' 22complete -c useradd -s s -l shell -d'Name of the new user\'s login shell' -x -a'(string match -r "^[^#].*" < /etc/shells; type -afp nologin)'