Use an alias to change directory quickly

Corin, command linezshbash
Back

It only occurred to me today that you can use a bash alias to change directory quickly by including the cd command and then the path.

I'm using zsh on Mac so first I opened my RC file in nano:

nano ~/.zshrc

And then added this line to be able to move into my local code directory with a one word command:

alias gocode='cd ~/Path/To/My/Code/'

© Corin Faife.RSS