summaryrefslogtreecommitdiff
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-04 11:14:30 -0500
commitf84ee28f0dd76e00ed6e44d0adcd10a7699676e8 (patch)
tree4a5b2a397542424c5f833cc8309e875acf5db54e
parentd511b83a2028f6729ee82ae6bd058a0c9773e9b6 (diff)
downloadvyatta-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-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
}