So I’ve created a bash script that takes argument and then (I want it to) cd me into a directory.
It’s not quite a case of cd /home/$1 for example, it’s a bit more complex.
The problem is (as I knew it would be) it’s cding the sub process rather than my instance of bash.
Is there any way to apply it to my open bash?
Echo the desired directory, then create a bash alias as follows:
It’s the approach I use for autojump, and it works very well.