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-04 11:14:30 -0500 |
commit | f84ee28f0dd76e00ed6e44d0adcd10a7699676e8 (patch) | |
tree | 4a5b2a397542424c5f833cc8309e875acf5db54e | |
parent | d511b83a2028f6729ee82ae6bd058a0c9773e9b6 (diff) | |
download | vyatta-op-f84ee28f0dd76e00ed6e44d0adcd10a7699676e8.tar.gz vyatta-op-f84ee28f0dd76e00ed6e44d0adcd10a7699676e8.zip |
Alert users when they have entered a completion that doesn't match.
-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 } |