I'm using MacOS and had the issue that my Terminal didn't react to the 'python' command, so I tried out what was recommended here (manually adding an alias to zsh with echo "alias python=/usr/bin/python3" >> ~/.zshrc).
Turned out this wasn't the perfect solution in my case, so I'd like to reverse it.
I tried the 'unalias' command, but this only works for the length of the Terminal session. If I reboot Terminal, the alias is still there. Is there a permanent way how to delete this manually added alias?
.zshrcfile using any text editor.Voila.
The
echocommand combined with>>is just appendingalias...to the bottom of the.zshrcfile, deleting this line will get rid of the alias permanently.