Let’s say my PATH="/usr/bin ... /root/.rbenv/shims"
I have an executable (ruby) in /usr/bin and /root/.rbenv/shims. How would I make the ruby in /root/.rbenv/shims be called?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Put
/root/.rbenv/shimsfirst in yourPATH:(Before running this command, you must be sure
PATHalready exists — if it doesn’t, it adds the current working directory to yourPATHas well, which is almost always a mistake.)