Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My shell prompt looks like this: ➜ ~ git:(master) ✗. How can I get my normal prompt back?

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.

like image 620
Programmer345 Avatar asked Aug 17 '14 16:08

Programmer345


People also ask

Why does my terminal say Git master?

The 'git master' just means that it thinks that the directory you're in right now is a Git repository, with new, unstaged changes. All of this has to do with source control.

How do I get the Git bash prompt back?

Solution: press 'q'. This will enable you to enter command again.


1 Answers

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.

like image 56
frank.lin Avatar answered Nov 05 '22 18:11

frank.lin