Closed akkartik closed 2 years ago
Hmm, you're right. I guess the thinking behind this wording was that it wouldn't work with a simple alias, but looks like at least alias t='cd $(tere)'
works in bash. Maybe we can leave the "script" out, what I want to highlight here is that the shell config is necessary. So I would change it to
It has to be usually done using a function or alias, since a subprocess cannot change the working directory of the parent.
Makes sense. I'll make the edit.
Thanks!
To my knowledge aliases and functions don't create subshells.