Skip to content

Instantly share code, notes, and snippets.

@tjwallace
Created August 5, 2011 22:18
Show Gist options
  • Save tjwallace/1128665 to your computer and use it in GitHub Desktop.
Save tjwallace/1128665 to your computer and use it in GitHub Desktop.
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
index f005700..cdb409a 100644
--- a/plugins/bundler/bundler.plugin.zsh
+++ b/plugins/bundler/bundler.plugin.zsh
@@ -16,8 +16,9 @@ _bundler-installed() {
_within-bundled-project() {
local check_dir=$PWD
+ [ -f "$check_dir/Gemfile" ] && return true
while [ "$(dirname $check_dir)" != "/" ]; do
- [ -f "$check_dir/Gemfile" ] && return
+ [ -f "$check_dir/Gemfile" ] && return true
check_dir="$(dirname $check_dir)"
done
false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment