在 Ubuntu 中为终结者(控制台应用程序)中的选项卡设置标题 [英] Setting Title for Tabs in Terminator (Console Application) in Ubuntu
本文介绍了在 Ubuntu 中为终结者(控制台应用程序)中的选项卡设置标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法通过 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}
将标题重置为
这简直太疯狂了"
这应该适用于所有 xterm 风格的终端仿真器.
This should apply to all xterm-style terminal emulators.
这篇关于在 Ubuntu 中为终结者(控制台应用程序)中的选项卡设置标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文