What can I do to make this alias working good?
alias mcd="echo Go to $1 ; cd $1"
When I write alias mcd="echo Go to $1" - than Go to work normally. If I add cd $1 the alias works, but doesn't print the name of the directory, value of $1="" for first part of alias. How to solve this?
Separately both parts os alias work, but together - no.
I read this, but it's 8 years old. Is it possible to do this without using a function?