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

前端 未结 10 1819
别跟我提以往
别跟我提以往 2021-01-03 07:56

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 an

10条回答
  •  抹茶落季
    2021-01-03 08:16

    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.

提交回复
热议问题