diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-03-05 09:00:07 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-03-05 09:00:07 +0100 |
commit | 3865fbbf5e2a5bbd3cbe759038f2301abf0e3f2b (patch) | |
tree | dd8c3031767db7c78501c71d376c122438debba1 | |
parent | abb31cc27df4b8773addeb9d2f623802fff22774 (diff) | |
download | crosstool-ng-3865fbbf5e2a5bbd3cbe759038f2301abf0e3f2b.tar.gz crosstool-ng-3865fbbf5e2a5bbd3cbe759038f2301abf0e3f2b.tar.bz2 crosstool-ng-3865fbbf5e2a5bbd3cbe759038f2301abf0e3f2b.zip |
scripts: fix completion to show samples
(transplanted from bf1f86bdd79fd20126d20795f425f603a5544952)
-rw-r--r-- | ct-ng.comp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6,7 +6,9 @@ _ct-ng () { cur=$(_get_cword) prev=${COMP_WORDS[COMP_CWORD-1]} - samples=$(${COMP_WORDS[0]} list-samples 2>/dev/null) + samples=$( ${COMP_WORDS[0]} list-samples 2>/dev/null \ + |sed -r -e 's/^(.*) \(host: (.*)\)$/\2,\1/;' \ + ) show_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1show-/g;') build_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1build-/g;') |