[英]How to add bin/ path of the current directory to PATH on the fly
Rails applications have a bin/ directory. Rails应用程序具有bin /目录。
There is a way with bash to detect the bin/ dir then add it to the PATH env on the fly ? bash有一种方法可以检测bin / dir,然后将其动态添加到PATH env中?
export PATH=$PATH:$PWD/bin
或者,为使其更永久,请在扩展$PWD
应该是的位置之后,将上述行添加到〜/ .bashrc中(即绝对路径名)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.