summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-01 08:59:04 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-01 08:59:04 -0800
commit4de2df295d7b56c04859eaebaf64e27720612d9c (patch)
tree1b04d48c4716282163b03b86f35d772013a30d9a
parent479c7021e19e16f74c9aff7d0f4d5d9df15458a1 (diff)
downloadvyatta-op-4de2df295d7b56c04859eaebaf64e27720612d9c.tar.gz
vyatta-op-4de2df295d7b56c04859eaebaf64e27720612d9c.zip
Add default command completion
This fixes the case of $se<TAB>
-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 32904a2..06cb03a 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -1,3 +1,4 @@
+# vyatta bash operational mode completion
# **** License ****
# This program is free software; you can redistribute it and/or modify
@@ -78,7 +79,9 @@ _vyatta_op_debug ()
_vyatta_op_init ()
{
+ # empty and default line compeletion
complete -E -F _vyatta_op_expand
+ complete -D -F _vyatta_op_expand
for xd in $vyatta_op_templates/* ; do
if [ -d $xd ] ; then