I have some bash scripts in an application folder that I'd like to use as if they were on my path. If they were straight-up applications, I'd just add the directory to ~/.bashrc, but these are scripts.
eg:
~/a_dir/another_dir/foo.sh
~/a_dir/another_dir/foo-gui.sh
Is there a good way to set up a path so that I can use them from any directory?
eg:
totally/different/path$ bash foo.sh
bash foo.sh
, but withfoo.sh
, after giving exec permission and putting them in the $PATH.