关闭窗口"/>
windows terminal退出时关闭窗口
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 这个软件相关的命令)。
References
- Terminal hangs on exit with ‘process exited with code 127’ message #4573
- How to Add or Remove “Open in Windows Terminal” context menu in Windows 10
- Add “open Windows terminal here” into right-click context menu #1060
- Panes in Windows Terminal
更多推荐
windows terminal退出时关闭窗口
发布评论