将 Cmder 与 Bash 一起使用 Ubuntu 上 Windows 10
Use Cmder with Bash on Ubuntu on Windows 10
我是 bash 和命令行的新手,朋友建议我在 Cmder 中使用 Bash 所以我在这里下载了它:http://cmder.net/ (mini)
问题是,当我打开它时,它模拟的是标准命令提示符,而不是 Bash。我找不到在哪里可以配置它。
当我说 Bash 时,我的意思是 Bash on Ubuntu on Windows 10.
Windows bash.exe 位于C:\Windows\System32,你只需在cmder shell 中使用完整路径即可:
C:\Windows\System32\bash
这是我的做法:
在“设置”、“任务”中,我添加了一个 "bash::ubuntu" 任务,我用 :
启动它
%windir%\system32\bash.exe -cur_console:pm:/mnt
(粘贴在右下角的大方框里)
我什至设置了它的图标:
-icon "%USERPROFILE%\AppData\Local\lxss\bash.ico"
(粘贴到"Task parameter"。)
它就像一个魅力,我什至设置了一个个性化的调色板锁定到 bash::ubuntu(使用 Ap Distinct)看起来像 ubuntu 的紫色终端。
顺便说一下,最新版本的 ConEmu 已经在 Bash::bash 下 bash.exe 安装了。
您可以在终端中输入 bash
以切换到 bash 模式
exit
退出
与 shell
相同 sh
Support for the new Windows 10 bash shell 现在是一个已关闭的问题。
Setting 可以这样做:
You make a new task called Bash::Ubuntu
Task parameters:
/icon "%USERPROFILE%\AppData\Local\lxss\bash.ico"
Commands:
cmd /k "%SYSTEMROOT%\System32\bash.exe" -new_console:d:%USERPROFILE%
Then you make a new task called Bash::Ubuntu as Admin
Task parameters same as before Commands:
*cmd /k "%SYSTEMROOT%\System32\bash.exe" -new_console:d:%USERPROFILE%
2018/7/2 最新版本Cmder(v1.3.6)
和Win10(17134)
与WSL(Windows subsystem Linux)
.
无需额外设置
我是 bash 和命令行的新手,朋友建议我在 Cmder 中使用 Bash 所以我在这里下载了它:http://cmder.net/ (mini)
问题是,当我打开它时,它模拟的是标准命令提示符,而不是 Bash。我找不到在哪里可以配置它。
当我说 Bash 时,我的意思是 Bash on Ubuntu on Windows 10.
Windows bash.exe 位于C:\Windows\System32,你只需在cmder shell 中使用完整路径即可:
C:\Windows\System32\bash
这是我的做法:
在“设置”、“任务”中,我添加了一个 "bash::ubuntu" 任务,我用 :
启动它%windir%\system32\bash.exe -cur_console:pm:/mnt
(粘贴在右下角的大方框里)
我什至设置了它的图标:
-icon "%USERPROFILE%\AppData\Local\lxss\bash.ico"
(粘贴到"Task parameter"。)
它就像一个魅力,我什至设置了一个个性化的调色板锁定到 bash::ubuntu(使用 Ap Distinct)看起来像 ubuntu 的紫色终端。
顺便说一下,最新版本的 ConEmu 已经在 Bash::bash 下 bash.exe 安装了。
您可以在终端中输入 bash
以切换到 bash 模式
exit
退出
与 shell
相同sh
Support for the new Windows 10 bash shell 现在是一个已关闭的问题。
Setting 可以这样做:
You make a new task called Bash::Ubuntu
Task parameters:
/icon "%USERPROFILE%\AppData\Local\lxss\bash.ico"
Commands:
cmd /k "%SYSTEMROOT%\System32\bash.exe" -new_console:d:%USERPROFILE%
Then you make a new task called Bash::Ubuntu as Admin
Task parameters same as before Commands:
*cmd /k "%SYSTEMROOT%\System32\bash.exe" -new_console:d:%USERPROFILE%
2018/7/2 最新版本Cmder(v1.3.6)
和Win10(17134)
与WSL(Windows subsystem Linux)
.