My normal terminal command line has suddenly disappeared and has been replaced by this git command line ➜ ~ git:(master) ✗
.
How do I get rid of this and go back to my normal command line in Terminal? I on Mac OS X.
I have tried typing exit
, Ctrl+c, q, etc. but nothing helped.
I know your problem , You are using zsh
, right?
If so, you should add export PS1=xxxxx
to ~/.zshrc
, not ~/.bashrc
.
Or you just don't use zsh
, input bash
and switch to bash.input
chsh -s /bin/bash
to change the default shell to bash
.