diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2008-11-21 16:45:26 +0000 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2008-11-21 16:45:26 +0000 |
commit | 491110bf522268de9d65cf568fd9493f8d6cee8a (patch) | |
tree | 45b75813d949ab77c9dfdc8c2003a32922a5d8fc /scripts/bash_completion | |
parent | 568d8851d977b2027fc8d6b6ff22a1faa79d22f6 (diff) | |
download | ptxdist-491110bf522268de9d65cf568fd9493f8d6cee8a.tar.gz ptxdist-491110bf522268de9d65cf568fd9493f8d6cee8a.tar.xz |
* bash_completion: - platform and select need filenames
- speed up dummy call
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9147 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/bash_completion')
-rw-r--r-- | scripts/bash_completion | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/bash_completion b/scripts/bash_completion index 47812b98f..bc8172969 100644 --- a/scripts/bash_completion +++ b/scripts/bash_completion @@ -26,13 +26,17 @@ _ptxdist_completion() ;; clone) #HACK! Enable filename completion without specifying '-o filenames' during complete (that will add slashes to commands if there is a dir of the same name :( ) - compgen -f >/dev/null + compgen -f /dummy >/dev/null [ $COMP_CWORD -lt 4 ] && _filedir -d ;; - select|platform|toolchain|export_src) - compgen -f >/dev/null + toolchain|export_src) + compgen -f /dummy >/dev/null [ $COMP_CWORD -lt 3 ] && _filedir -d ;; + select|platform) + compgen -f /dummy >/dev/null + [ $COMP_CWORD -lt 3 ] && _filedir + ;; get|extract|prepare|compile|install|targetinstall|tags) COMPREPLY=( $( compgen -W "${opts} $( ptxdist print PACKAGES_SELECTED )" -- $cur ) ) ;; |