You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing Ruby in some (all?) platforms or installation methods, there is a need to add the gem bin paths to the PATH variable.
Right now, the only way I found to obtain these bin paths, is with something like this:
gem env path | sed 's@[^:]\+@&/bin@g'
which appends /bin to each path in the gem env path output.
# I would love to be able to do this (or similar):export PATH="$PATH:$(gem env binpath)"# ...instead of this:export PATH="$PATH:$(gem env path | sed 's@[^:]\+@&/bin@g')"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After installing Ruby in some (all?) platforms or installation methods, there is a need to add the gem bin paths to the
PATH
variable.Right now, the only way I found to obtain these
bin
paths, is with something like this:which appends
/bin
to each path in thegem env path
output.Beta Was this translation helpful? Give feedback.
All reactions