I'm quite a newbie, but I know every time you start Terminal, some files are taken into account; and among those there is ~/.profile
, which contains the following lines:
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
I created the directory ~/bin
because I want to put there some personal stuff.
I closed Terminal and re-opened it, but PATH
doesn't include ~/bin
. So, as an experiment, I added a stupid
echo "hello world!"
at the bottom of ~/.profile
, saved changes and re-logged in with terminal, but nothing. It seems that file is totally ignored.
Am I wrong? Or something changed?
. ~/.profile
in a terminal. Mind the space after the first '.'! This will manually evaluate (AKA source) the file so inside that terminal the changes are effective. – Christoph Grimmer Jun 25 '20 at 10:11