Browse Source

Merge pull request #2195 from KevinBongart/command_blacklist_for_bundler_plugin

Add command blacklist support to bundler plugin
Robby Russell 10 years ago
parent
commit
83c18f8553
1 changed files with 5 additions and 0 deletions
  1. 5 0
      plugins/bundler/bundler.plugin.zsh

+ 5 - 0
plugins/bundler/bundler.plugin.zsh

@@ -8,6 +8,11 @@ alias bu="bundle update"
 
 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)
 
+# Remove $UNBUNDLED_COMMANDS from the bundled_commands list
+for cmd in $UNBUNDLED_COMMANDS; do
+  bundled_commands=(${bundled_commands#$cmd});
+done
+
 ## Functions
 
 bi() {