diff options
Diffstat (limited to 'bash-completion/fdformat')
-rw-r--r-- | bash-completion/fdformat | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bash-completion/fdformat b/bash-completion/fdformat new file mode 100644 index 000000000..4ad1c3d05 --- /dev/null +++ b/bash-completion/fdformat @@ -0,0 +1,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 |