23 lines
449 B
Bash
23 lines
449 B
Bash
# vipw(8) and vigr completion -*- shell-script -*-
|
|
|
|
_vipw()
|
|
{
|
|
local cur prev words cword
|
|
_init_completion || return
|
|
|
|
case $prev in
|
|
-h|--help)
|
|
return 0
|
|
;;
|
|
-R|--root)
|
|
_filedir -d
|
|
return 0
|
|
;;
|
|
esac
|
|
|
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
|
} &&
|
|
complete -F _vipw vipw vigr
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|