This question already has an answer here:
I have exported the PATH but once I switch to a different terminal or reboot Debian, $PATH is reset. Here are the steps I take:
~$ vim scripts.sh #!/bin/bash echo "Hello"
I save it as
mybash.sh and chmod with 755. Then I move it to my
~$ export PATH=$PATH:~/root/scripts
and it works, but once I reboot Debian, close or switch into another terminal,
mybash.sh cannot be called.
Why doesn't it store PATH permanently?