diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-17 11:56:49 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-17 11:56:49 -0800 |
commit | b5d7e7a4442627940c047af383915f23750b1e38 (patch) | |
tree | 23982c2cc6d831db8fb074ef37463eb1ca369b71 | |
parent | 75effe13d492ef8ea75adc3ebcab48720dab45d3 (diff) | |
download | vyatta-cfg-b5d7e7a4442627940c047af383915f23750b1e38.tar.gz vyatta-cfg-b5d7e7a4442627940c047af383915f23750b1e38.zip |
Add filename completion for keyfile
-rwxr-xr-x | etc/bash_completion.d/20vyatta-cfg | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index efe1fb4..b32ceab 100755 --- a/etc/bash_completion.d/20vyatta-cfg +++ b/etc/bash_completion.d/20vyatta-cfg @@ -446,8 +446,10 @@ vyatta_loadkey_complete() echo -e " ftp://<user>@<host>/<file>\tLoad from file on remote machine" echo -e " http://<host>/<file>\t\t\tLoad from file on remote machine" echo -e " tftp://<host>/<file>\t\t\tLoad from file on remote machine" - fi - COMPREPLY=() ;; + COMPREPLY=() + else + COMPREPLY=( $(compgen -f -- ${COMP_WORDS[2]} ) ) + fi ;; esac } |