summaryrefslogtreecommitdiffstats
path: root/completions/userdel
diff options
context:
space:
mode:
Diffstat (limited to 'completions/userdel')
-rw-r--r--completions/userdel27
1 files changed, 27 insertions, 0 deletions
diff --git a/completions/userdel b/completions/userdel
new file mode 100644
index 0000000..ed98447
--- /dev/null
+++ b/completions/userdel
@@ -0,0 +1,27 @@
+# userdel(8) completion -*- shell-script -*-
+
+_userdel()
+{
+ local cur prev words cword
+ _init_completion || return
+
+ case $prev in
+ --help | -!(-*)h)
+ return
+ ;;
+ --root | -!(-*)R)
+ _filedir -d
+ return
+ ;;
+ esac
+
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ return
+ fi
+
+ COMPREPLY=($(compgen -u -- "$cur"))
+} &&
+ complete -F _userdel userdel
+
+# ex: filetype=sh