[英]How to run regular bash from cmder and not wsl bash?
After I install docker on my windows 10, I get a message that I need to install wsl2 also.在我的 windows 10 上安装 docker 后,我收到一条消息,我还需要安装 wsl2。 - So I did.
- 所以我做了。
But now my cmder
run wsl
when I run bash command.但是现在当我运行 bash 命令时,我的
cmder
运行wsl
。 before it just run the bash
command.在它运行
bash
命令之前。
the problem with bash wsl
most of my commands are not avaiable. bash
wsl
的问题我的大多数命令都不可用。
How to restore the settings to run bash
not by wsl
?如何恢复设置以运行
bash
而不是wsl
?
In Cmder, open settings: Win
+ Alt
+ P
在Cmder中,打开设置:
Win
+ Alt
+ P
Under Startup > Tasks, add a task called {bash} with the following settings:在 Startup > Tasks 下,添加一个名为 {bash} 的任务,其设置如下:
Task parameters (set icon):任务参数(设置图标):
For Cmder icon: /icon "%CMDER_ROOT%\cmder.exe"
For Git icon: /icon "C:\Program Files (x86)\Git\etc\git.ico"
Commands (open Git's bash shell):命令(打开 Git 的 bash shell):
"C:\Program Files (x86)\Git\bin\sh.exe" -l -new_console:d:%USERPROFILE%
Specified name task --> {bash}
Specified name task --> {bash}
Please check below couple of articles and should solve an issue.请检查以下几篇文章,应该可以解决问题。
https://gist.github.com/nickautomatic/02ccb76292f7f8d9767e https://gingter.org/2016/11/16/running-windows-10-ubuntu-bash-in-cmder/
https://gist.github.com/nickautomatic/02ccb76292f7f8d9767e https://gingter.org/2016/11/16/running-windows-10-ubuntu-bash-in-cmder/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.