From b5d7e7a4442627940c047af383915f23750b1e38 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 17 Feb 2010 11:56:49 -0800 Subject: Add filename completion for keyfile --- etc/bash_completion.d/20vyatta-cfg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'etc/bash_completion.d/20vyatta-cfg') 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://@/\tLoad from file on remote machine" echo -e " http:///\t\t\tLoad from file on remote machine" echo -e " tftp:///\t\t\tLoad from file on remote machine" - fi - COMPREPLY=() ;; + COMPREPLY=() + else + COMPREPLY=( $(compgen -f -- ${COMP_WORDS[2]} ) ) + fi ;; esac } -- cgit v1.2.3