我想将 git bash 集成到 IntelliJ 中,因此我将默认终端路径更改为C:\Program Files\Git\bin\sh.exe. 一段时间后,我注意到有些命令不起作用,例如:
sh.exe
$ ll
bash: ll: command not found
Run Code Online (Sandbox Code Playgroud)
还有一些程序无法运行。我正在使用MQTT CLI,下载了它,PATH正确配置了变量,但该命令mqtt仅在git-bash.exe.
sh.exe
$ mqtt
bash: mqtt: command not found
Run Code Online (Sandbox Code Playgroud)
git-bash.exe
$ mqtt
Usage: mqtt [-hV] { pub | sub | shell }
MQTT Command Line Interpreter.
Options:
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
Commands:
pub, publish Publish a message to a list of topics …Run Code Online (Sandbox Code Playgroud)