summaryrefslogtreecommitdiffstats
path: root/scripts/bash_completion
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2010-01-12 17:50:36 +0100
committerWolfram Sang <w.sang@pengutronix.de>2010-01-12 17:52:54 +0100
commit0347f9ee0b202978aed0c5b2a50dc42c413b9bd0 (patch)
treedc1b398036897168b87d62d062f9cd3070f6d37d /scripts/bash_completion
parent9f11b7522a12518ac3c285909cd32551bede9973 (diff)
downloadptxdist-0347f9ee0b202978aed0c5b2a50dc42c413b9bd0.tar.gz
ptxdist-0347f9ee0b202978aed0c5b2a50dc42c413b9bd0.tar.xz
bash_completion: updates
* add new commands & options * minor: improve a comment, support 'collection' Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'scripts/bash_completion')
-rw-r--r--scripts/bash_completion10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/bash_completion b/scripts/bash_completion
index e469953de..e7491c32a 100644
--- a/scripts/bash_completion
+++ b/scripts/bash_completion
@@ -1,4 +1,4 @@
-# bash_completion for PTXdist by Wolfram Sang, Pengutronix e.K., in 2008
+# bash_completion for PTXdist by Wolfram Sang, Pengutronix e.K., in 2008-2010
# part of PTXdist, so same licence.
if have ptxdist; then
@@ -10,10 +10,10 @@ _ptxdist_completion()
COMPREPLY=()
cur=( $(_get_cword) )
- opts=' --debug --force --j-extern --j-intern --platformconfig --ptxconfig --quiet --toolchain'
- cmds=' autobuild boardsetup clean clone compile distclean drop export_src extract get go images install kernelconfig menu menuconfig newpacket oldconfig platform platformconfig prepare print projects ptxdist select setup tags targetinstall test toolchain u_boot_config version'
+ opts=' --collectionconfig --debug --force --force-download --j-extern --j-intern -k --platformconfig --ptxconfig --quiet --toolchain'
+ cmds=' allmodconfig allnoconfig allyesconfig autobuild boardsetup clean clone collection compile distclean drop export_src extract get go images install kernelconfig menu menuconfig migrate newpacket oldconfig platform platformconfig prepare print projects ptxdist select setup tags targetinstall test toolchain u_boot_config version'
- # if no command were given, complete on commands
+ # if no commands were given, complete on commands themselves
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $( compgen -W "${cmds} help" -- $cur ) )
return 0
@@ -33,7 +33,7 @@ _ptxdist_completion()
compgen -f /dummy >/dev/null
[ $COMP_CWORD -lt 3 ] && _filedir -d
;;
- select|platform)
+ select|platform|collection)
compgen -f /dummy >/dev/null
[ $COMP_CWORD -lt 3 ] && _filedir
;;