I'm trying to use
alias command to switch between two definitions (trying to use Rust's
cargo and Crystal's compiler
crystal from command line). I have the following in my
alias c=crystal alias cargo="unalias c; alias c=cargo" alias crystal="unalias c; alias c=crystal"
However, when I try to run something like
> c macro.rs
in macOS terminal I get
bash: alias: macro.rs: not found
What may be the problem here?