Note, if you are using Bash, then the $CDPATH variable, already built in to Bash, will let you do everything your script provides.
Note, if you are using Bash, then the $CDPATH variable, already built in to Bash, will let you do everything your script provides.