terminal 默认在用 exit
退出时,如果最后一条命令出错,会显示 error code 且卡住窗口不关闭:
想让它像 cmd 一样直接退出,参考 [1],打开 json 设置:
然后在 profiles/defaults
中加入 "closeOnExit": "always"
:
{
"profiles": {
"defaults": {
"closeOnExit": "always"
},
}
}
Splitting Panes
terminal 分屏见 [4]。一些快捷键:
- alt + shift + +/-:在右/下方创建新分屏;
- alt + 方向健:切换分屏,类似 vim 的 ctrl + w + h/j/k/l;
- alt + shift + 方向:调当前分屏大小;
- ctrl + shift + w:关当前分屏;
- ctrl + shift + p:呼出命令版面(此处「命令」是指与 terminal 这个软件相关的命令)。