Showing git branch in ConEMU

前端 未结 5 697
别跟我提以往
别跟我提以往 2021-02-08 07:04

Is there a way to show the branch in git somewhere visually (background or similiar) in ConEmu?

5条回答
  •  灰色年华
    2021-02-08 07:34

    Git branch can be visible in plain cmd or Far Manager prompt.

    GIT branch in cmd prompt

    All magic is done with special ANSI sequences ("Inject ConEmuHk" and "ANSI X3.64 ..." options must be checked). I Run GitShowBranch /i to install showing branch, GitShowBranch /u to uninstall.

    Also, you may run your cmd as following (within Task contents or ConEmu's Command line)

    cmd /k ver & GitShowBranch /i
    

    PS. File GitShowBranch exists in ConEmu's distro, but you may see it online.

提交回复
热议问题