most upvoted answer here :
https://unix.stackexchange.com/questions/26047/how-to-correctly-add-a-path-to-path
I conclude that I must put
PATH=$PATH:~/.local/bin
in
~/.profile
I found
export PATH="$HOME/.cargo/bin:$PATH"
already in that file.
I naturally added a second line
PATH=$PATH:~/.local/bin
but when I
source ~/.bashrc
and
echo $PATH
the location isn't added, but
$HOME/.cargo/bin
is present
I've also tried
export PATH=$PATH:~/.local/bin
Any advice ? explanation ? idk if I must go the "not recommended" way then.
anyone ?
Обсуждают сегодня