Created
August 5, 2011 22:18
-
-
Save tjwallace/1128665 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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