一番搜索
- https://discussion.fedoraproject.org/t/change-integrated-terminal-in-vscode-from-sh-to-zsh/28420/6
- https://github.com/flathub/com.visualstudio.code/issues/44
也就2的可行,(知道一个神奇的程序flatpak-spawn)
"terminal.integrated.profiles.linux": {
"zsh(host)": {
"overrideName": true, // 使用 zsh(host) 而不是flatpak-spawn作为标题
"path": "flatpak-spawn",
"args": [
"--host",
"--env=TERM=linux",
"zsh"
],
}
},
"terminal.integrated.defaultProfile.linux": "zsh(host)"
“–env=TERM=linux” 很重要,不然方向键失灵,退格失灵
默认值为 xterm-256color
如果是自己编译的 zsh ,则没有问题,应该是 flatpak-spawn 程序的问题