Closed croaky closed 11 years ago
This is a similar attempt to standardize our binstub usage as https://github.com/thoughtbot/dotfiles/pull/166. Our research card is at https://trello.com/card/use-bin-for-binstubs-directory/50f06fb01e671a2e2200ad9a/107
I should note that I don't understand what hash -r 2>/dev/null || true
is doing.
hash -r
is required when changing PATH because the shell caches program lookup. The redirect and or-true is probably just so that the function operates silently and returns successfully regardless of what hash
has to say about it.
Trying an approach @joshuaclayton mentioned:
From https://github.com/sstephenson/rbenv/wiki/Understanding-binstubs#adding-project-specific-binstubs-to-path