How to set relative directory to PATH variable, and run scripts in relative directory globally I have some some scripts in a git project I wan to access globally, so I add the relative path to the scripts folder like so

vim ~/.bash_profile
export PATH="~/git/scripts/:$PATH"
source ~/.bash_profile


and there is a file ~/git/scripts/ called echoHelloWorld.sh, so how I can I run echoHelloWorld.sh if I am for example in the ~/Downloads folder? Do I do

cd ~/Downloads
./echoHelloWorld


because I have tried that, but it does not work, and I have also tried chmod +x echoHelloWorld.sh with no results.
If you have added the path of the file to run to your PATH variable you can run your command directly with

 echoHelloWorld.sh


independent of the directory you are in. Running it as ./echoHelloWorld.sh actually explicitly tells the shell to ignore PATH and run the script from the current directory (where it is not available).