I installed Ubuntu 17.04 and copied my custom scripts into
~/bin. Then I made all files in that directory executable, via
chmod. I double-checked in GUI, and the files are executable.
I checked ~/.profile, and it already contains the following lines (which are NOT commented out):
if [ -d "$HOME/bin" ]; then PATH="$HOME/bin:$PATH" fi
However, when I try to run a script (in that directory) by typing
my-script-name in terminal, I get "command not found" error, yet when I type
~/bin/my-script-name, then it runs properly.
I was able to run custom scripts from
~/bin directory in this way in 16.04 LTS, but it's not working for me in 17.04. What do I need to do to make this work? Does 17.04 no longer check that directory?