windows terminal退出时关闭窗口

编程入门 行业动态 更新时间:2024-10-08 06:18:45

windows terminal退出时<a href=https://www.elefans.com/category/jswz/34/1695209.html style=关闭窗口"/>

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

  1. Terminal hangs on exit with ‘process exited with code 127’ message #4573
  2. How to Add or Remove “Open in Windows Terminal” context menu in Windows 10
  3. Add “open Windows terminal here” into right-click context menu #1060
  4. Panes in Windows Terminal

更多推荐

windows terminal退出时关闭窗口

本文发布于:2024-02-06 07:21:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1747372.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:关闭窗口   windows   terminal

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!