summaryrefslogtreecommitdiff
path: root/completions/vipw
diff options
context:
space:
mode:
Diffstat (limited to 'completions/vipw')
-rw-r--r--completions/vipw27
1 files changed, 27 insertions, 0 deletions
diff --git a/completions/vipw b/completions/vipw
new file mode 100644
index 00000000..ac885aa7
--- /dev/null
+++ b/completions/vipw
@@ -0,0 +1,27 @@
+# vipw(8) and vigr completion
+
+_vipw()
+{
+ local cur prev words cword
+ _init_completion || return
+
+ case $prev in
+ -h|--help)
+ return 0
+ ;;
+ esac
+
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
+ return 0
+ fi
+} &&
+complete -F _vipw vipw vigr
+
+# Local variables:
+# mode: shell-script
+# sh-basic-offset: 4
+# sh-indent-comment: t
+# indent-tabs-mode: nil
+# End:
+# ex: ts=4 sw=4 et filetype=sh