summaryrefslogtreecommitdiff
path: root/ct-ng.comp
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-04-01 22:18:26 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-04-01 22:18:26 (GMT)
commite5a007415a0fa8bb4a6d6d9b6a9d1fd3e45acb74 (patch)
tree49927e3c122645a97ea83e63af381aea7d54098c /ct-ng.comp
parent5807b7dfb7a0234b5157e761b195d478f9803067 (diff)
scripts: misc help and auto-complete fixes
- don't list samples in the main help screen - improve the samples listing in list-samples - don't document the 'config' action, it's long dead - document the 'V' environment variable - improve on START, STOP and PREFIX environment variables - add PREFIX and V to autocomplete - advertise auto-complete at install time
Diffstat (limited to 'ct-ng.comp')
-rw-r--r--ct-ng.comp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ct-ng.comp b/ct-ng.comp
index a6ad19c..c8c6301 100644
--- a/ct-ng.comp
+++ b/ct-ng.comp
@@ -6,8 +6,8 @@ _ct-ng () {
cur=$(_get_cword)
prev=${COMP_WORDS[COMP_CWORD-1]}
- samples=$( ${COMP_WORDS[0]} list-samples 2>/dev/null \
- |sed -r -e 's/^(.*) \(host: (.*)\)$/\2,\1/;' \
+ samples=$( "${COMP_WORDS[0]}" list-samples 2>/dev/null \
+ |tail -n +2 |sed -e '/^ /d; s/ .*//;' \
)
show_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1show-/g;')
build_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1build-/g;')
@@ -22,7 +22,7 @@ _ct-ng () {
clean distclean wiki-samples updatetools
tarball version'
- vars="RESTART= STOP="
+ vars="RESTART= STOP= PREFIX= V="
ct_ng_opts="${samples} ${show_samples} ${build_samples}
${steps} ${start_steps} ${stop_steps}