I’ll often be working in a directory over multiple days. To easily get to that directory I set up an alias in my bash profile like this
alias repo=’cd /path/to/directory’
But I found it tedious having to change the alias and reload the profile whenever I started working on a new project.
So, I wrote this quick little script was changes the alias and updates my bash profile for me.
Hope you find it useful.
https://github.com/Nathancooke7/friendly-chainsaw/blob/master/set_repo.sh