DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Never run `bundle exec` or use `bin/` again with these two easy steps
Matt Culpepper
Matt Culpepper

Posted on • Updated on

Never run `bundle exec` or use `bin/` again with these two easy steps

Step one:

Add PATH=".git/safe/../../bin:$PATH" to your PATH

If you're using bash or zsh:

echo 'PATH=".git/safe/../../bin:$PATH"' >> ~/.$0rc
Enter fullscreen mode Exit fullscreen mode

If you're using fish,

fish_add_path -p ".git/safe/../../bin"
Enter fullscreen mode Exit fullscreen mode

Step two:

In your Ruby project directory, and any subsequent Ruby project directories, run mkdir .git/safe.

Image description

Voila! Props to @thorncp for telling me about this and props to the legendary Tim Pope for coming up with it (I believe)

Top comments (0)

DEV

Thank you.

Β 
Thanks for visiting DEV, we’ve worked really hard to cultivate this great community and would love to have you join us. If you’d like to create an account, you can sign up here.