Commit Graph

10 Commits (3c2bc3d1967fe6e4cf3a065aa3a63eb8e8cf6ed2)

Author SHA1 Message Date
John D Pell 65ef8e2e8b Use _bash_it_homebrew_check() in plugins, completions
Use new function `_bash_it_homebrew_check()` in existing plugins and completions which look for Homebrew.

Alsö, use `$OSTYPE` instead of calling external `uname` binary.
2021-08-22 12:48:48 -07:00
John D Pell de9ea54b81
Don't call external `uname` when `$OSTYPE` will do (#1911)
* lib/helpers: use `$OSTYPE` instead of `$(uname)`

* plugins/osx: use `$OSTYPE` instead of `$(uname)`

* plugins/boot2docker: use `$OSTYPE` instead of `$(uname)`

* plugins/python: use `$OSTYPE` instead of `$(uname)`

* plugins/base: use `$OSTYPE` instead of `$(uname)`

Alsö, use `[[` instead of `[` as the former has less insane argument handling being shell syntax rather than a builtin command that must emulate being a real binary

* completion/brew: use `$OSTYPE` instead of `$(uname)`

* completion/git: use `$OSTYPE` instead of `$(uname)`

Alsö, use `[[` instead of `[`.

* completion/fabric: use `$OSTYPE` instead of `uname`

* theme/demula: use `$OSTYPE` instead of `$(uname)`

* theme/rana: use `$OSTYPE` instead of `$(uname)`
2021-08-14 10:20:12 +03:00
Noah Gorny 37a7fac128 completion: brew: Add shellcheck ignore directives 2021-01-28 16:09:02 +02:00
Gurkirat Singh 1d569573da formatted brew completion 2021-01-28 16:09:00 +02:00
cornfeedhobo f40bfa80f1
system completion nitpicks
- General cleanup of system completion
- Use homebrew's completion loading script instead
- Deprecate completions covered by system
- Adjust load priority of brew to happen after system
2020-09-21 09:07:09 -05:00
Hongyi Zhao 6f2376daa2 touch up completion/available/brew.completion.bash 2019-12-19 16:53:24 +08:00
Hongyi Zhao 7c73b22e75 fix completion/available/brew.completion.bash for the git-clone based installation 2019-12-19 16:45:39 +08:00
Mike Fiedler 23da5508cc
Reduce subshell forks with variable
By following the established pattern in https://github.com/Bash-it/bash-it/blob/master/completion/available/system.completion.bash#L17-L22
we can reduce the amount of `fork` calls that are made.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-28 07:13:45 -04:00
Mike Fiedler cbe63e8871
Replace system completion with current brew file
Resolves #1046

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-28 06:36:30 -04:00
Travis Swicegood e115b4c5af Move auto-complete code over to available -> enabled style
This continues the move toward the ability to turn things off with
everything turned on by default.
2011-06-21 09:20:40 -05:00