aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/adduser.fish
diff options
context:
space:
mode:
authorGravatar gonchar <gonchar@gonchar-lt.jinr.ru>2011-09-23 12:24:21 +0400
committerGravatar gonchar <gonchar@gonchar-lt.jinr.ru>2011-09-23 12:24:21 +0400
commitc66ec4df3d57bcbd8eb1fb3d92c3cd80e1c215b5 (patch)
tree26687f27243c7df719f3b14d87b085d8560146bf /share/completions/adduser.fish
parentc25c48f76369d61e23de283d34f9b5b80d19f022 (diff)
* __fish_complete_subcommand_root now passes arguments to
__fish_complete_subcommand * sudo: - now can be completed bu group and user (-u and -g keys). - subcommand completion is fixed * __fish_complete_proc.fish is added to complete killall command with list of running processes * __fish_complete_tex.fish is updated with common options * __fish_make_completion_signals.fish is added to make a list of kill signals for kill and killall * completions: - minor filetype completions are added for djview, xpdf, mupdf, gv, xdvi - adduser is copmleted by user and group - dlocate and dpkg are completed by packages - find: -executable options is added - htop: options - funced and funcsave are completed by function names - ifdown and ifup are copmleted by interfaces - kill and killall: options, signals and processes - latexmk, ln, nm: options - lualatex and xelatex copmletions - sudo: -u and -g options - wvdial: presets
Diffstat (limited to 'share/completions/adduser.fish')
-rw-r--r--share/completions/adduser.fish9
1 files changed, 5 insertions, 4 deletions
diff --git a/share/completions/adduser.fish b/share/completions/adduser.fish
index 0ce13ec8..9704625c 100644
--- a/share/completions/adduser.fish
+++ b/share/completions/adduser.fish
@@ -5,7 +5,8 @@
# have been hand edited since.
#
-complete -c adduser -l conf --description 'Specify config file" -r
+complete -x -c adduser -a "(__fish_complete_users; __fish_complete_groups)"
+complete -c adduser -l conf --description 'Specify config file' -r
complete -c adduser -l disabled-login --description 'Do not run passwd to set the password'
complete -c adduser -l disabled-password --description 'Like --disabled-login, but logins are still possible (for example using SSH RSA keys) but not using password authentication'
complete -c adduser -l force-badname --description 'By default, user and group names are checked against the configurable regular expression NAME_REGEX (or NAME_REGEX if --system is specified) specified in the configuration file'
@@ -13,10 +14,10 @@ complete -c adduser -l gecos --description 'Set the gecos field for the new entr
complete -c adduser -l gid --description 'When creating a group, this option forces the new groupid to be the given number' -r
complete -c adduser -l group --description 'When combined with --system, a group with the same name and ID as the system user is created'
complete -c adduser -l help --description 'Display brief instructions'
-complete -c adduser -l home --description 'Use specified directory as the user's home directory' -x -a '(__fish_complete_directories)'
-complete -c adduser -l shell --description 'Use shell as the user's login shell, rather than the default specified by the configuration file' -x -a '(cat /etc/shells)'
+complete -c adduser -l home --description 'Use specified directory as the user\'s home directory' -x -a '(__fish_complete_directories)'
+complete -c adduser -l shell --description 'Use shell as the user\'s login shell, rather than the default specified by the configuration file' -x -a '(cat /etc/shells)'
complete -c adduser -l ingroup --description 'Add the new user to GROUP instead of a usergroup or the default group defined by USERS_GID in the configuration file' -x -a '(cat /etc/group|cut -d : -f 1)'
-complete -c adduser -l no-create-home --description 'Do not create the home directory, even if it doesn't exist'
+complete -c adduser -l no-create-home --description 'Do not create the home directory, even if it doesni\'t exist'
complete -c adduser -l quiet --description 'Suppress informational messages, only show warnings and errors'
complete -c adduser -l debug --description 'Be verbose, most useful if you want to nail down a problem with adduser'
complete -c adduser -l system --description 'Create a system user or group'