How do I run msysgit in cmder?

后端 未结 3 2135
粉色の甜心
粉色の甜心 2020-12-14 08:54

I was using msysgit and git-bash in cmder when I accidentally exited out of it.
Now I can\'t seem to figure out how to get to the unix environment I previously had.

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-14 09:32

    Run the following command in cmder:

    sh -l
    

    This assumes that Git's "sh" is on your PATH. But if you installed git differently and sh is not found, then try entering the full path to it, for example:

    "C:\Program Files (x86)\Git\bin\sh.exe" -l
    

    If you want to automate this so you don't have to run sh explicitly, then go into cmder/ConEmu's settings and change the {cmd} task to have the command sh -l and the parameters /dir "%HOME%". Then cmder will always start up Git Bash by default, instead of Microsoft's cmd shell.

提交回复
热议问题