summaryrefslogtreecommitdiffstats
path: root/misc/bash-completion
Commit message (Collapse)AuthorAgeFilesLines
* Speed-up bash target auto-complete.Hadi Moshayedi2015-10-311-3/+2
| | | | | | | | These speed-ups include: * Let compgen do the command substitution. Similar to https://lists.gnu.org/archive/html/bug-bash/2012-03/msg00115.html * Use "cut" instead of "awk" for separating fields.
* no subshellElan Ruusamäe2014-11-231-1/+1
| | | don't need subshell to send stderr to /dev/null
* Fix getopts barfing over the terminal when trying to complete -f and -CTaylor Braun-Jones2014-04-301-1/+1
| | | | | Note that this is only applicable for when bash_completion is unavailable.
* Support completion of arguments to -f and -C optionsTaylor Braun-Jones2014-04-301-2/+19
| | | | Note: This is only available for bash_completion users.
* Style: Fix inconsistent indentationTaylor Braun-Jones2014-04-251-17/+17
|
* Fix bash-completion support for -C option to expand tildeTaylor Braun-Jones2014-04-251-1/+2
|
* Expand the -C argument via ‘eval’ in bash completionAllan Odgaard2014-04-151-1/+1
| | | | | | Previously completion would not work for ‘ninja -C $HOME/Source/foo targ‸’. We still do not support using tilde in the directory argument.
* Fix bash completion when using command optionsAllan Odgaard2014-04-151-1/+1
| | | | | | | | By quoting the ‘line’ variable we are making it a single word, but ‘getopts’ wants each option as its own word. Previously bash completion would output an error for a line like: ‘ninja -vn targ‸’. In addition to removing the quotes (to enable word expansion) I also used it as a regular variable, as that is what it is (not an array).
* Improved bash completion when using tools like '-t clean'Guilherme Bufolo2013-04-061-11/+18
|
* Add support for reading directory for bash completion.Tommy Nyquist2012-10-301-2/+10
| | | | | | Currently ninja bash completion only works in the directory where the build.ninja files is located. This adds support for using the -C argument to ninja.
* add bash completion based on zsh completionEvan Martin2011-12-281-0/+25