mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-08-07 06:08:39 +02:00
fix(bundler): keep bu as generic update alias
This commit is contained in:
parent
b071ac4419
commit
35182d8105
2 changed files with 2 additions and 11 deletions
|
|
@ -22,7 +22,7 @@ plugins=(... bundler)
|
||||||
| `bo` | `bundle open` | Opens the source directory for a gem in your bundle |
|
| `bo` | `bundle open` | Opens the source directory for a gem in your bundle |
|
||||||
| `bout` | `bundle outdated` | List installed gems with newer versions available |
|
| `bout` | `bundle outdated` | List installed gems with newer versions available |
|
||||||
| `bp` | `bundle package` | Package your needed .gem files into your application |
|
| `bp` | `bundle package` | Package your needed .gem files into your application |
|
||||||
| `bu` | `bundle update --all` (no arguments) or `bundle update <args>` | Update all gems, or only the given gems/options (e.g. `bu rake`, `bu --ruby`) |
|
| `bu` | `bundle update` | Update your gems to the latest available versions |
|
||||||
|
|
||||||
## Gem wrapper
|
## Gem wrapper
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,7 @@ alias bl="bundle list"
|
||||||
alias bo="bundle open"
|
alias bo="bundle open"
|
||||||
alias bout="bundle outdated"
|
alias bout="bundle outdated"
|
||||||
alias bp="bundle package"
|
alias bp="bundle package"
|
||||||
unalias bu 2>/dev/null
|
alias bu="bundle update"
|
||||||
# `bundle update` needs --all to update everything, but rejects --all when
|
|
||||||
# gems or options are given (e.g. `bu <gem>`, `bu --ruby`)
|
|
||||||
bu() {
|
|
||||||
if [[ $# -eq 0 ]]; then
|
|
||||||
bundle update --all
|
|
||||||
else
|
|
||||||
bundle update "$@"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
## Gem wrapper
|
## Gem wrapper
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue