I'm fairly new to Zsh and Bash.
I wish to set up custom commands, for example desktop
which would bring me to my desktop. Adding the following lines to the .bash_profile file would work With Bash.
desktop() {
cd /Users/me/Desktop
}
It doesn't seem to work with Zsh.
Is it just a matter of where I place the code, or am I going about this all wrong?