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

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

    There seems to be a few command line tools that work together with Git that add those customizations.

    In my case after installing Drush I got my ~/.bashrc file updated with Drush-specific customizations, which in this case affffded a green (master *) $ to the prompt, no matter where I was (very annoying).

    Fixed it by commenting out the block after # Include Drush prompt customizations. in my ~/.bashrc and then source ~/.bashrc

提交回复
热议问题