03dc3a84630a1e3227bd0e772cca5d5f1fd4a9d4

Author
Kevin Bongart <contact@kevinbongart.net>
Committer
Kevin Bongart <contact@kevinbongart.net>
Date

Message

Add command blacklist support to bundler plugin

Diff

 1diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
 2index 5bd28cbdc83c0db2c9fdfbc740485e24aae20044..9b589c5a8a0020ae5884f64f66234566879b1b0e 100644
 3--- a/plugins/bundler/bundler.plugin.zsh
 4+++ b/plugins/bundler/bundler.plugin.zsh
 5@@ -13,9 +13,13 @@ fi
 6 eval "alias bi='bundle install --jobs=$cores_num'"
 7 
 8 # The following is based on https://github.com/gma/bundler-exec
 9-
10 bundled_commands=(annotate berks cap capify cucumber foodcritic foreman guard jekyll kitchen knife middleman nanoc rackup rainbows rake rspec ruby shotgun spec spin spork strainer tailor taps thin thor unicorn unicorn_rails puma)
11 
12+# Remove $UNBUNDLED_COMMANDS from the bundled_commands list
13+for cmd in $UNBUNDLED_COMMANDS; do
14+  bundled_commands=(${bundled_commands#$cmd});
15+done
16+
17 ## Functions
18 
19 _bundler-installed() {