diff options
| author | Karel Zak <kzak@redhat.com> | 2013-04-05 14:58:07 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2013-04-05 14:58:07 +0200 |
| commit | 20da58084a68b118b15fa01228192463b61fa28f (patch) | |
| tree | 07beea113d5a68749264ad59e4d17fbc4bf9fe1d /bash-completion/fdformat | |
| parent | aead7c7e690ab019e0706f228a226b8c17eeab38 (diff) | |
| download | util-linux-20da58084a68b118b15fa01228192463b61fa28f.tar.gz | |
bash-completion: rename shell-completion -> bash-completion
Signed-off-by: Karel Zak <kzak@redhat.com>
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 0000000000..4ad1c3d05e --- /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 |
