summaryrefslogtreecommitdiffstats
path: root/scripts/bash_completion
Commit message (Collapse)AuthorAgeFilesLines
* bash_completion: don't cache package list when an error occuredMichael Olbrich2020-06-051-0/+3
| | | | | | | This can happen when the user aborts with 'ctrl+c' while ptxdist is generating the package list. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: use '_have' instead of 'have'Roland Hieber2019-11-281-1/+1
| | | | | | | | | | | | | | | | | 'have' was deprecated upstream about 8 years ago. [0] Also, since it is only available inside of /etc/bash_completion [1], using it makes it harder to (re)load existing completions in a running shell: $ . ~/.bash_completion.d/ptxdist bash: have: command not found Use '_have' instead, which does not have these problems. [0]: https://github.com/scop/bash-completion/commit/20c05b43b6e44b [1]: https://github.com/scop/bash-completion/blob/31b5cbc8016b18/bash_completion#L2158 Signed-off-by: Roland Hieber <rhi@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: cleanup & improveMichael Olbrich2018-03-271-5/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: add some basic support for 'ptxdist gdb'Michael Olbrich2018-03-021-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: cache package list when possibleMichael Olbrich2014-02-251-1/+10
| | | | | | | Keep the old behaviour for old ptxdist versions that do not printing multiple variables. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: fix completion for 'clean'Michael Olbrich2012-12-111-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: options a always validMichael Olbrich2012-10-281-5/+6
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: no need for pushd/popd in a subshellMichael Olbrich2012-10-281-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: suppress errors when printing PTX_PACKAGES_SELECTEDMichael Olbrich2012-10-281-4/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: generate and cache commandsMichael Olbrich2012-10-281-3/+6
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: generate and cache newpackage optionsMichael Olbrich2012-10-281-1/+5
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: generate and cache optionsMichael Olbrich2012-10-281-8/+11
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: rework and improveMichael Olbrich2012-10-281-10/+74
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: add 'image' and 'nfsroot' commandsMichael Olbrich2012-10-151-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: simplifyMichael Olbrich2012-10-041-5/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* bash_completion: Allow links to be completedBenoît Burnichon2012-10-041-4/+10
| | | | | | | | using this bash_completion allows using p <Tab> to complete commands even if ptxdist is installed on the system Signed-off-by: Benoît Burnichon <benoit.burnichon@airtag.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* templates: add image-genimage templateMichael Olbrich2012-06-141-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* templates: add image-tgz templateMichael Olbrich2012-06-141-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Keep the bash's autocompletion in sync with PTXdist's featuresJuergen Beisert2012-06-021-1/+1
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* Honor the Barebox bootloaderJuergen Beisert2012-06-021-1/+1
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [bash_completion] fix bash completion for newpackageMarc Kleine-Budde2010-03-031-1/+4
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [PATCH] rename newpacket command to newpackage ...Uwe Kleine-König2010-02-031-2/+2
| | | | | | | | | | | ... and provide a fallback for a smooth user experience. While at it fix most wrong usages of "packet". There are a few left in TODO (done items) and the Changelog. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> [mkl: use ' instead of " during deprecation warning] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* bash_completion: updatesWolfram Sang2010-01-121-5/+5
| | | | | | | * add new commands & options * minor: improve a comment, support 'collection' Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
* [bash-complete] unbreak itMarc Kleine-Budde2009-04-211-2/+2
| | | | | | | | | | | in commit (svn:9180 git:9312d9589b880266fb6bac6d561574139d47be7a) bash completion was broken by renaming the variable PACKAGES_SELECTED to PTX_PACKAGES_SELECTED and not changing the completion script accordingly. this patch fixed this. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10319 33e552b5-05e3-0310-8538-816dae2090ed
* * bash_completion: - platform and select need filenamesWolfram Sang2008-11-211-3/+7
| | | | | | | - speed up dummy call git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9147 33e552b5-05e3-0310-8538-816dae2090ed
* * bash_completion: first shot, won't be installed yet. (cp ↵Wolfram Sang2008-11-171-0/+55
scripts/bash_completion /etc/bash_completion.d/ptxdist) git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9127 33e552b5-05e3-0310-8538-816dae2090ed