I am using Catalina(the default shell is zsh) and I want to figure out what happen after executing zsh
. I thought it would tell you that "You are using zsh" or something like this. Instead, it showed me
I tried to figure out current prompt definition in .zshrc
or .zprofile
, but the only thing I found is a
, which completely confused me.
I mean this isn't the prompt format when I changed into Bash in 1st picture either. What does this definition serve for? It actually drives me crazy.
I want to know what happen after I execute zsh
and why it leads to prompt changed. I know that to further customize prompt I probably could create a .zshrc
or .zprofile
file. But I am really curious about where is default prompt format defined. How can I simply revert it without adding new file (override the default one)?
/etc/zshrc
or maybe/etc/zsh/...
?