Rails applications have a bin/ directory.
There is a way with bash to detect the bin/ dir then add it to the PATH env on the fly ?
export PATH=$PATH:$PWD/bin
或者,为使其更永久,请在扩展$PWD
应该是的位置之后,将上述行添加到〜/ .bashrc中(即绝对路径名)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.