简体   繁体   中英

How to add bin/ path of the current directory to PATH on the fly

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM