3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 1475
/ 1 Year ago, wed, may 31, 2023, 7:44:43
I try to set the $PATH reference to the current working directory, one machine work as expected, but another machine is not.
basically, I have set below line in .bashrc
export PATH=$PWD/bin:$PATH
if I move directory to /123
, I expected that the $PATH will updated to /123/bin:$PATH
but it isn't.
Are there anyway to make it read the current $PWD to use in $PATH?
More From » bash