aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/brew_bash_completion.sh
AgeCommit message (Collapse)Author
2013-06-12Update fetch bash completionAdam Vandenberg
Also complete --devel and the formula's install options.
2013-05-27Add `brew search --debian <f>`Adam Vandenberg
2013-05-25Fix completion of install options without formulaJack Nagel
Fixes #20084.
2013-05-15brew_bash_completion: complete --force for brew linkJaime Marquínez Ferrándiz
Closes #19828. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-30completion: avoid unnecessary `brew` invocationsJack Nagel
2013-04-11Add tap --repair to bash completion scriptRobson Peixoto
Closes #19113. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-30Fix typo for pin command in bash_completionJaime Marquínez Ferrándiz
Closes #18849. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-30brew-pin: prevent selected formulae from upgrade.Simon Sigurdhsson
* Added `pin` et. al. to manpage. * Added `brew pin` to `brew.1` * Added `brew unpin` to `brew.1` * Added `brew list --pinned` to `brew.1` * Added information about frozen formulae to `brew upgrade` in `brew.1` * Added `pin` et.al. to completion scripts. * Unpin formulae when uninstalling them * Unpin and re-pin formulae when upgrading (avoids stale symlink) References #18386. Closes #18515. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-18Rename Library/Contributions/cmds -> cmd.Mike McQuaid
2013-01-29Add 'instal' to completionsAdam Vandenberg
2012-11-13Document some recently added optionsJack Nagel
2012-11-13bash completion for doctor checksJack Nagel
2012-07-18brew-test-bot: move html and css into subdirectoryMisty De Meo
Also updates the bash-completion to ignore subdirectories, rather than specific filename patterns.
2012-07-17bash-completion: hide brew-bot support filesMisty De Meo
Hides files with the extensions ".css" and ".erb" to ensure that the brew-bot's support files don't show up in tab-completion.
2012-07-12Restore completion for "link" and "ln"Jack Nagel
Commit 3b5d7939d9a660a83e29a86e6bab234f3e9f2dcb added completion for `brew link` options, but disabled completion of the actual command itself. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-11Add completions for brew linkAdam Vandenberg
2012-06-13Completion for "brew missing"Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-12Use "legacy" search API when completing tap namesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-01Replace /usr/bin/ruby with full Framework pathMisty De Meo
Rationale: some users insist on replacing the /usr/bin/ruby symlink to point to another ruby on their system, which may break homebrew. Use the full Framework path instead, which is less likely to be tampered with. This also reorganizes the brew --config checks to reflect the different path. Fixes #12009. Closes #12333. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-03-29Remove "__brew_ps1" function from completionJack Nagel
This was probably silly and I'm probably the only person that ever used it. I still do, actually, but it's not really a completion function, it's simple enough to just stick in a shell startup script, and removing it makes the completion script usable under the new dynamic loading scheme provided by bash-completion 1.99+. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-23Tab completion for `brew tap`Jack Nagel
Using an inline Ruby script we can hit the GitHub API and look for repositories that match the tap naming scheme. The results are cached for the duration of the current shell session, so going over the network is a once-per-shell-session cost. There are a few false positives, but not much we can do about that at this point, as taps do not have to be in the fork network of any specific repository. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-18Rename external commands directory from examples.Mike McQuaid
Fixes #10829.
2012-03-16Tab completion for tapped formulaeJack Nagel
So you can do e.g. $ brew install adamv<TAB> Display all 106 possibilities? (y or n) $ brew install adamv/alt/openss<TAB> adamv/alt/openssh adamv/alt/openssl098 adamv/alt/openssl100 Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-16Appease the massesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-16Bash completion for `brew untap`Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-25Refactor the bash completion scriptJack Nagel
The script was lacking structure and had grown a number of one-off hacks that would be better as reusable functions. So, - give each subcommand that has completions it's own function - move completion of formulae, installed brews, and outdated brews into reusable functions - introduce a general __brewcomp() function that takes a string of tab, space, and/or newline separated items and converts all seperators to newlines, and then generates a reply with compgen(). These changes should allow for easier addition of new features in the future. As a bonus, completion for `brew log` will include git-log options if the git completion script is also loaded. _brew_to_completion() is kept around for compatiblity. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-08Complete options for `brew -S`Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06versions: enable '--compact' outputJack Nagel
This will be useful for shell tab completion when something like `brew install <formula> --version <version>` is implemented. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-11completion: audit takes formula argumentsJack Nagel
- Also remove `--strict` completion since that option was removed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-11completion: complete multiple formula argumentsJack Nagel
We make the assumption that the first non-option word is the command being invoked. Originally I was trying to allow command completion for non-standard command lines like $ brew --verbose inst<TAB> but right now executing something like that doesn't actually work. Which is interesting, because the man page implies that it should. Either the man page is incorrect, or something was broken between then and now. Anyway, it would probably be safe to just assume that COMP_WORDS[1] is the command, and we do make that assumption in other places. But if we ever do allow things like "brew --option command", this will be useful. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-28Document 'install --devel'Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-27Move brew-depstree into `brew deps --tree`Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-14Add --fresh option to brew installCharlie Sharpsteen
When invoked, this option will ensure brew doesn't re-use any options from previous installs of a formula.
2011-11-11completion: add __brew_ps1 to annotate $PS1Jack Nagel
It is often useful to be reminded that you are, in fact, in the middle of a debug or interactive install. We provided this reminder in the form of HOMEBREW_DEBUG_INSTALL, but we can make this even easier for the end user to consume by exposing it in the form of a shell function. When HOMEBREW_DEBUG_INSTALL is set, the __brew_ps1() function returns the string "(formula_name|DEBUG)" by default (much like the __git_ps1() output when performing some long-running operation, e.g. "(branch|REBASE-i)". The formatting around "formula_name|DEBUG" can be customized by passing a format string to the function. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-12Add bash completion for subcommand optionsJack Nagel
We already have option completion for `brew install`; now we have it for all core commands, and the --cache, --cellar, and --prefix flags now have appropriate formula completion. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-09Fix syntax error in the bash-completion scriptJack Nagel
My bad. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-08Make bash completion for `upgrade` smarterJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-29Fix alpha-order mistake in brew bash-completionJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-28Add `upgrade` to the bash-completion scriptJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-25Document HOMEBREW_BUILD_FROM_SOURCEJack Nagel
Additionally, add '--build-from-source' to the bash-completion script.
2011-08-17Contribution: Tweak bash completion for installCharlie Sharpsteen
Selection of generic installation options, such as `--HEAD`, is now lumped together with selection of formulae-specific options. This allows any installation option to be tab-completed *before or after* the formula name is specified. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-02Added new command "versions"Sebastian Staudt
2011-06-16Add --use-clang to completion script.Adam Vandenberg
2011-05-14Add remove back to completionAdam Vandenberg
2011-05-04Update bash completion scriptJack Nagel
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-13brew missing: allow a formula argumentAdam Vandenberg
If a formula is given, it will be checked for missing deps. The formula does not have to be installed first. Without a formula list, still checks all installed brews.
2011-03-31Add audit to bash completionAdam Vandenberg
2011-03-21add --verbose to brew install completionAdam Vandenberg
2011-03-16Add --use-gcc to bash completionAdam Vandenberg
2011-02-09Handle default install --optionsJustin Hileman
i.e. `--force --debug --use-llvm --ignore-dependencies --HEAD` Additionally: * Use a cleaner `if` block in install options completion case. * De-dupe options for subsequent completion (e.g. stop offering --foo once --foo option has been used). Signed-off-by: Adam Vandenberg <flangy@gmail.com>