Skip to content

Add binstubs to PATH #109

Closed
croaky opened this Issue Feb 25, 2013 · 3 comments

3 participants

@croaky
thoughtbot, inc. member
croaky commented Feb 25, 2013

Necessary for use with rbenv. thoughtbot/laptop@3aeb5b5

Proposed solution:

export PATH=./bin/stubs:$PATH
@joshuaclayton
thoughtbot, inc. member

Not sure if I'm just being paranoid but this could potentially open up some nasty issues. I've been using @tpope's suggestion outlined in a tweet from Feb 2012 (https://twitter.com/tpope/status/165631968996900865, corresponding code in my dotfiles) to add bin/stubs relative to a .git/safe directory. While this requires you to mkdir .git/safe in projects you work on, I prefer feeling better about my $PATH and spending the additional one or two seconds to authorize binstubs per project.

@jferris
thoughtbot, inc. member
jferris commented Feb 26, 2013

I think that kind of paranoia is completely valid in a server setup, but I've never felt the need to be so protective of my development machine. This is one of those cases where I'd prefer convenience over safety given the relatively low risk involved.

@croaky
thoughtbot, inc. member
croaky commented Dec 31, 2013

I believe this is is superseded by #191

@croaky croaky closed this Dec 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.