Execute without ./ prefix

Try this command instead:

export PATH=$PATH:.

This will make it so that the system will look for executables in current directory without a "./". The command that you gave will make it so that the system will always look in that directory no matter what directory that you are in.


For your home machine you can just add a bin folder to your home dir., after a restart it will automatically be added to your path with any the recent ubuntu releases. Then you can call your script just with the scriptname

Usually best to make sure that your scriptnames are unique as by default ~/bin will trump /usr/bin. If in doubt just add a # to the end of name. Ex. - find1

No need to have any .sh in scriptnames, note this also works with executable binaires