diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-10-03 14:22:22 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-03 14:22:22 -0500 |
commit | f628d40205c9d29e955a7f008356bd03238da631 (patch) | |
tree | 8d028bce59ba10310f88d07af55f8753636841ec /etc | |
parent | 3d07c1fe3b82db1c73c6b9b49784370dedbe30e8 (diff) | |
download | vyatta-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-op | 3 |
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 } |