summaryrefslogtreecommitdiff
path: root/etc/bash_completion.d
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-07-22 18:13:56 -0700
committerMichael Larson <slioch@slioch.vyatta.com>2010-07-22 18:13:56 -0700
commit5dc05fab7f408cc342409c5278e2277126240ec0 (patch)
tree0c1523f3634c5b3bf61b999ef6df4586592546a2 /etc/bash_completion.d
parent42945feee9465a90e5504d0df72a1cc03ad7c255 (diff)
downloadvyatta-cfg-5dc05fab7f408cc342409c5278e2277126240ec0.tar.gz
vyatta-cfg-5dc05fab7f408cc342409c5278e2277126240ec0.zip
first commit to mendocino!
re-enable activate/deactivate
Diffstat (limited to 'etc/bash_completion.d')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg8
1 files changed, 7 insertions, 1 deletions
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