From 5dc05fab7f408cc342409c5278e2277126240ec0 Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Thu, 22 Jul 2010 18:13:56 -0700 Subject: first commit to mendocino! re-enable activate/deactivate --- etc/bash_completion.d/20vyatta-cfg | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index 3395638..901806d 100755 --- a/etc/bash_completion.d/20vyatta-cfg +++ b/etc/bash_completion.d/20vyatta-cfg @@ -1039,9 +1039,11 @@ vyatta_config_complete () fi if (( ${#COMP_WORDS[@]} < 2 )); then - declare -a hitems=( "comment" \ + declare -a hitems=( "activate" \ + "comment" \ "commit" \ "copy" \ + "deactivate" \ "delete" \ "discard" \ "edit" \ @@ -1055,9 +1057,11 @@ vyatta_config_complete () "set" \ "show" ) declare -a hstrs=( \ + "Activate this element" \ "Add comment to this configuration element" \ "Commit the current set of changes" \ "Copy a configuration element" \ + "Deactivate this element" \ "Delete a configuration element" \ "Discard uncommitted changes" \ "Edit a sub-element" \ @@ -1396,6 +1400,8 @@ if ! bind -p |grep -q '\\C-x\\C-o'; then fi complete -F vyatta_config_complete '' +complete -F vyatta_config_complete activate +complete -F vyatta_config_complete deactivate complete -F vyatta_config_complete set complete -F vyatta_config_complete delete complete -F vyatta_config_complete show -- cgit v1.2.3