Right now I am learning to make scripts, and I wanted to add a dir to $PATH to simplify testing the scripts I create to learn, but not just for the bash session... I want it to be permanent.
I googled for a solution, and it said to add it in .bash_profile which does not exist in Mint (I am guessing this is the same as ~/.profile). Anyway, the dir I want to add is called bin and its in my home, and in the .profile there were these lines already:
Code: Select all
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
as far as I can tell that means that I shouldn't need to make any change... ~/bin should be added automatically to $PATH since the directory exists, right?
but its not! what am I doing wrong?