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 | 05cde88ba9d556aa0edafe583d1f05a772aafa84 (patch) | |
tree | d6fcc2f1d9816b3de4d7203991d3d437c33b0e0f /ct-ng.comp | |
parent | cbc8a652373455cb7475ebd7d7e0c041f623871a (diff) | |
download | crosstool-ng-05cde88ba9d556aa0edafe583d1f05a772aafa84.tar.gz crosstool-ng-05cde88ba9d556aa0edafe583d1f05a772aafa84.tar.bz2 crosstool-ng-05cde88ba9d556aa0edafe583d1f05a772aafa84.zip |
scripts: fix completion to show samples
Diffstat (limited to 'ct-ng.comp')
-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;') |