Why is “MINGW64” appearing on my Git bash?

后端 未结 7 849
抹茶落季
抹茶落季 2020-12-07 14:25

I had to format my laptop, and so I had to install Git again. However it is quite different from the one I had yesterday, the icon is not the default orange one anymore, it

7条回答
  •  误落风尘
    2020-12-07 15:22

    It's a little different in the new git versions.

    • copy the line below in /etc/bash.bashrc: export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\] \[\e[33m\]\w\[\e[0m\]\n'"${_ps1_symbol}"' '

    • add it to ~/.bashrc and do some custom edit: export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n '

      If you do not like the additional blank line when press Enter, just remove the \n above.

    • source the ~/.bashrc file: source ~/.bashrc

    • my terminal example:

提交回复
热议问题