summaryrefslogtreecommitdiffstats
path: root/bash-completion/chfn
blob: a8eaee5ae8f2b1b0a1f7a5386492cd9a125eaa28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
_chfn_module()
{
	local cur OPTS
	COMPREPLY=()
	cur="${COMP_WORDS[COMP_CWORD]}"
	case $cur in
		-*)
			OPTS="-f --full-name -o --office -p --office-phone -h --home-phone -u --help -v --version"
			COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
			return 0
			;;
	esac
	COMPREPLY=( $(compgen -u -- $cur) )
	return 0
}
complete -F _chfn_module chfn