summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-10-03 14:22:22 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-03 14:22:22 -0500
commitf628d40205c9d29e955a7f008356bd03238da631 (patch)
tree8d028bce59ba10310f88d07af55f8753636841ec /etc
parent3d07c1fe3b82db1c73c6b9b49784370dedbe30e8 (diff)
downloadvyatta-op-f628d40205c9d29e955a7f008356bd03238da631.tar.gz
vyatta-op-f628d40205c9d29e955a7f008356bd03238da631.zip
Alert users when they have entered a completion that doesn't match.
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/vyatta-op3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op
index d76874a..83b2050 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -297,6 +297,9 @@ _vyatta_op_invalid_completion ()
fi
args[$i]=$arg
let "i+=1"
+ if [ $[${#COMP_WORDS[@]}+1] -eq $i ];then
+ echo -ne "\n No completion found with prefix [$arg]"
+ fi
done
}