4012df8fbb449bd551400c66f7602452bbae0bd1

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

bundler: add alias for bundle add

Fixes #8892

Diff

This diff is truncated to protect this page.

 1diff --git a/plugins/bundler/README.md b/plugins/bundler/README.md
 2index 9f211b02f9093f9e36f1a8edaa8e1d8ecdec1ae6..a3bceb0ae28efd10810484ed105972c660d3889e 100644
 3--- a/plugins/bundler/README.md
 4+++ b/plugins/bundler/README.md
 5@@ -1,7 +1,9 @@
 6 # Bundler
 7 
 8-- adds completion for basic bundler commands
 9-- adds short aliases for common bundler commands
10+- Adds completion for basic bundler commands
11+
12+- Adds short aliases for common bundler commands
13+  - `ba` aliased to `bundle add`
14   - `be` aliased to `bundle exec`.
15     It also supports aliases (if `rs` is `rails server`, `be rs` will bundle-exec `rails server`).
16   - `bl` aliased to `bundle list`
17@@ -10,9 +12,12 @@
18   - `bout` aliased to `bundle outdated`
19   - `bu` aliased to `bundle update`
20   - `bi` aliased to `bundle install --jobs=<cpu core count>` (only for bundler `>= 1.4.0`)
21-- adds a wrapper for common gems:
22-  - looks for a binstub under `./bin/` and executes it (if present)
23-  - calls `bundle exec <gem executable>` otherwise
24+  - `bcn` aliased to `bundle clean`
25+  - `bck` aliased to `bundle check`
26+
27+- Adds a wrapper for common gems:
28+  - Looks for a binstub under `./bin/` and executes it (if present)
29+  - Calls `bundle exec <gem executable>` otherwise
30 
31 Common gems wrapped by default (by name of the executable):
32diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
33index b1fd8339bd2db59b18c70b9d9037ffa669cf2013..65b0ffa6e0c5e564c0f62d328361fe41c008f9b7 100644
34--- a/plugins/bundler/bundler.plugin.zsh
35+++ b/plugins/bundler/bundler.plugin.zsh
36@@ -1,3 +1,4 @@
37+alias ba="bundle add"
38 alias be="bundle exec"
39 alias bl="bundle list"
40 alias bp="bundle package"