summaryrefslogblamecommitdiffstats
path: root/bash-completion/fdformat
blob: 4ad1c3d05eec5baf836c596f25ca7ef1a31766bd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                               
_fdformat_module()
{
	local cur OPTS
	COMPREPLY=()
	cur="${COMP_WORDS[COMP_CWORD]}"
	DEVS=$(for I in echo /dev/fd*; do if [ -e $I ]; then echo $I; fi; done)
	OPTS="-n --no-verify -h --help -V --version $DEVS"
	COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
	return 0
}
complete -F _fdformat_module fdformat