From 41e1420919ced87a4807d13290d00be1343aa46d Mon Sep 17 00:00:00 2001 From: Matthew Turney Date: Fri, 27 Apr 2012 15:03:42 -0500 Subject: [PATCH] Added ability to override default `bundle exec` commands in custom configuration file --- plugins/bundler/bundler.plugin.zsh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh index e1f571237..71ce0cc19 100644 --- a/plugins/bundler/bundler.plugin.zsh +++ b/plugins/bundler/bundler.plugin.zsh @@ -6,7 +6,13 @@ alias bu="bundle update" # The following is based on https://github.com/gma/bundler-exec -bundled_commands=(annotate cap capify cucumber ey foreman guard heroku middleman nanoc rackup rainbows rails rake rspec ruby shotgun spec spork thin thor unicorn unicorn_rails) +if [ -f $ZSH_CUSTOM/bundle-commands.zsh ]; then + source $ZSH_CUSTOM/bundle-exec.zsh +fi + +if [[ -z "${bundled_commands}" ]]; then + bundled_commands=(annotate cap capify cucumber ey foreman guard heroku middleman nanoc rackup rainbows rails rake rspec ruby shotgun spec spork thin thor unicorn unicorn_rails) +fi ## Functions