我想使用cmder shell在IntelliJ / GoLand / WebStorm中等等。
此外,我希望使用bash而不是默认的cmd。
这可以通过更改设置>工具>终端的设置来实现。
对于Shell路径,配置
cmd.exe /c "path\to\my\cmder\vendor\git-for-windows\bin\bash.exe"这与预期的一样:当打开终端窗口时,cmder将启动bash。
然而,这有一个问题:别名不起作用。
在普通cmder窗口中,我可以使用像ll这样的别名。在这里,我不能。我发现别名是在cmder\vendor\git-for-windows\etc\profile.d\aliases.sh中定义的
编辑:使用以下shell路径时的:
cmd.exe /c "path\to\my\cmder\vendor\git-for-windows\bin\bash.exe" --login -i..。化名起作用了。但是,在打开控制台时,我总是收到以下错误消息:
Creating user startup file: /config/user_profile.sh
cp: cannot stat '/vendor/user_profile.sh.default': No such file or directory将“启动目录”更改为cmder文件夹并不能解决问题。
如何让它们在我的IDE中运行?
发布于 2022-01-27 08:14:13
步骤
1.在高级系统设置下创建环境变量、系统属性、环境变量、具有名称的系统变量: CMDER_ROOT=C:\path\to\your\cmder
2.在步骤1中提到的cmder文件夹中创建cmder_shell.bat文件,其内容为:“@cmd.exe /k %0..\vendor\init.bat”
3. shell路径中的:cmd.exe /c ""%CMDER_ROOT%\cmder_shell.bat
https://stackoverflow.com/questions/66373669
复制相似问题