cygwin中修改path变量

1、在家目录建立 .bash_profile 文件。

2、在该文件添加:

export PATH=/my/path/:$PATH

3、解释,/my/path/为你要添加的目录,为什么不在.bashrc中修改?因为根据规则,.bashrc在.bash_profile中调用,实际系统指执行.bash_profile

猜你喜欢

转载自www.cnblogs.com/litifeng/p/11621451.html