Working with MacOS Catalina zsh

Today morning I upgraded my macOS to Catalina, upon opening the terminal, it is telling:

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.

I did so, and run:

chsh -s /bin/zsh

Closed the terminal and opened new one, and upon running cargo run, I got:

hasan@Hasans-MacBook-Air new % cargo run
zsh: command not found: cargo

rustup by default adds ~/.cargo/bin to your PATH in .profile. It sounds like zsh is not evaluating your .profile. (Terminal windows on Mac count as login shells, iirc, and so would normally evaluate .profile.)

Unless something about the upgrade stomped on your .profile?

Edit: Ah-ha.

1 Like

Thanks a lot, got fixed with me by doing:

ln -s .profile .zprofile