summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-17 11:56:49 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-17 11:56:49 -0800
commitb5d7e7a4442627940c047af383915f23750b1e38 (patch)
tree23982c2cc6d831db8fb074ef37463eb1ca369b71 /etc
parent75effe13d492ef8ea75adc3ebcab48720dab45d3 (diff)
downloadvyatta-cfg-b5d7e7a4442627940c047af383915f23750b1e38.tar.gz
vyatta-cfg-b5d7e7a4442627940c047af383915f23750b1e38.zip
Add filename completion for keyfile
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg6
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
}