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

前端 未结 10 1870
别跟我提以往
别跟我提以往 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:21

    Open your ZSH config file

    sudo vim ~/.zshrc

    and paste below command at the bottom of the file

    PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} '

    this will show current directory

提交回复
热议问题