I just followed this post to be able to permanently access a directory from anywhere in terminal after setting it to PATH
by adding:
export PATH=$PATH:/path/to/dir
to ~/.bash_profile
I am now able to access a script anywhere in terminal with bash update_git_script.sh
but am no longer able to type bash upd
+ tab
as I was before when I was in the actual directory containing the script.
The main reason I've made the scripts I'm trying to access is to quickly pull different git repos, so being able to use tab
to complete the item is ideal.
Thanks