summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg
index 03cfe6c..efe1fb4 100755
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -434,7 +434,11 @@ loadkey()
vyatta_loadkey_complete()
{
case "$COMP_CWORD" in
- 1) COMPREPLY=( $( compgen -u -- ${COMP_WORDS[1]} ) ) ;;
+ 1) if [ -z "${COMP_WORDS[1]}" ]; then
+ COMPREPLY=( $(getent passwd | awk -F: '$7 == "/bin/vbash" { print $1}') )
+ else
+ COMPREPLY=( $(compgen -u -- ${COMP_WORDS[1]} ) )
+ fi ;;
2) if [ -z "${COMP_WORDS[2]}" ]; then
echo "Possible completions:"
echo -e " <file>\t\t\t\tLoad from file on local machine"
@@ -929,6 +933,7 @@ vyatta_config_complete ()
"edit" \
"exit" \
"load" \
+ "loadkey" \
"merge" \
"rename" \
"run" \