diff options
-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 } |