Single use:
export PATH = $ PATH:/home/raul/swift/usr/ bin
but When the terminal restarts the configuration is lost but in the ~/.profile the same line is not working u.u
The code below can be added to the end of .profile
. Review to make sure there are no spaces the path strings /home/raul/swift/usr/bin
and PATH="$PATH:/home/raul/swift/usr/bin"
.
## :MY:PROFILE:EDIT: add swift executable path
if [ -d "/home/raul/swift/usr/bin" ] ; then
PATH="$PATH:/home/raul/swift/usr/bin"
fi
After .profile
is edited, do one to the following for the changes to take affect:
source .profile
Note: .profile
would be effective to the duration of the desktop login session and for subsequent terminal sessions within the same desktop session. .bashrc
would typically apply just to the scope of a terminal session.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With