在Ubuntu中的Terminator(控制台应用程序)中设置选项卡的标题 [英] Setting Title for Tabs in Terminator (Console Application) in Ubuntu
本文介绍了在Ubuntu中的Terminator(控制台应用程序)中设置选项卡的标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以通过bash命令行(CLI)将选项卡的终止符(版本:0.95ppa1)标题设置为其他字符串?
Is there way to set terminator (Version: 0.95ppa1) title of tabs to a different string via bash command-line (CLI)?
我计划将此功能与AutoKey一起使用,并且可以同时打开多台计算机,并将标题设置为与其连接的计算机的名称.
I plan to use this feature with AutoKey and I can open multiple machines at same time and set title to Name of the machine its connected to.
推荐答案
ORIG=$PS1
TITLE="\e]2;\"This is just crazy enough to work\"\a"
PS1=${ORIG}${TITLE}
将标题重置为
这太疯狂了,无法正常工作"
"This is just crazy enough to work"
这应适用于所有xterm样式的终端仿真器.
This should apply to all xterm-style terminal emulators.
这篇关于在Ubuntu中的Terminator(控制台应用程序)中设置选项卡的标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文