diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-10-12 10:38:02 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-10-12 10:38:02 +0000 |
commit | c7771e81fa0b111a2b1a19c9719648d53f083ab1 (patch) | |
tree | eda73a850eda95b0475e776145951119217f46ce /ct-ng.comp | |
parent | 80a45a63de358e94f1c06ca391ab125adc287133 (diff) | |
download | crosstool-ng-c7771e81fa0b111a2b1a19c9719648d53f083ab1.tar.gz crosstool-ng-c7771e81fa0b111a2b1a19c9719648d53f083ab1.tar.bz2 crosstool-ng-c7771e81fa0b111a2b1a19c9719648d53f083ab1.zip |
Update the auto-completion function:
- be silent in case of errors
- also suggest 'build.'
/trunk/ct-ng.comp | 6 3 3 0 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Diffstat (limited to 'ct-ng.comp')
-rw-r--r-- | ct-ng.comp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,15 +6,15 @@ _ct-ng () { cur=$(_get_cword) prev=${COMP_WORDS[COMP_CWORD-1]} - samples=$(${COMP_WORDS[0]} list-samples) + samples=$(${COMP_WORDS[0]} list-samples 2>/dev/null) show_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1show-/g;') - steps=$(${COMP_WORDS[0]} list-steps |awk '$1 == "-" { print $2; }') + steps=$(${COMP_WORDS[0]} list-steps 2>/dev/null |awk '$1 == "-" { print $2; }') start_steps=$(echo "${steps}" |sed -r -e 's/(^| )/\1+/;') stop_steps=$(echo "${steps}" |sed -r -e 's/(^| )/+\1/;') actions='config menuconfig oldconfig saveconfig - list-samples build list-steps regtest regtest-local + list-samples build build. list-steps regtest regtest-local regtest-global clean distclean wiki-samples updatetools tarball' |