Ham*_*nce 3 linux terminal zsh shell
我已经Visual Studio Code
安装在 flatpak 中,我运行它:
flatpak run --command=sh com.visualstudio.code
我想将 shell 更改为zsh
,但我找不到如何更改,我在我的 中尝试了多种方法settings.json
:
...
"terminal.integrated.shell.linux": "/usr/bin/flatpak-spawn",
"terminal.integrated.shellArgs.linux": ["--host", "run", "env", "TERM=xterm-256color", "zsh"],
...
Run Code Online (Sandbox Code Playgroud)
和
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/usr/bin/flatpak-spawn",
"args": ["--host", "--env=TERM=xterm-256color", "zsh"]
}
}
Run Code Online (Sandbox Code Playgroud)
没有一个有效。
小智 7
这就是我个人在我的 vscode 上工作的方式,仅供参考Terminal.integrated.shell.linux已被弃用:
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/usr/bin/flatpak-spawn",
"args": ["--host", "--env=TERM=xterm-256color", "zsh"]
}
},
Run Code Online (Sandbox Code Playgroud)