Xpr*_*rog 30 bash tabs terminator
有没有办法通过bash命令行(CLI)将标签的终止符(版本:0.95ppa1)标题设置为不同的字符串?
我计划在AutoKey上使用此功能,我可以同时打开多台机器并将标题设置为其连接的机器的名称.
Bol*_*ter 31
ORIG=$PS1
TITLE="\e]2;\"This is just crazy enough to work\"\a"
PS1=${ORIG}${TITLE}
Run Code Online (Sandbox Code Playgroud)
将标题重置为
"这太疯狂了,无法工作"
这应该适用于所有xterm风格的终端模拟器.
小智 17
.bashrc通过使用编辑文件添加以下内容vim ~/.bashrc并使用set_title以重命名选项卡:
set_title()
{
ORIG=$PS1
TITLE="\e]2;$*\a"
PS1=${ORIG}${TITLE}
}
Run Code Online (Sandbox Code Playgroud)
source ~/.bashrc编辑.bashrc文件后运行命令
例如:set_title newtab将您当前的标签重命名为newtab
在Gnome3.14终端和终结器0.97中正常工作
Log*_*ogg 16
从终结者手册页,
Ctrl + Alt + W重命名窗口标题.
Ctrl + Alt + A重命名选项卡标题.
Ctrl + Alt + X重命名终端标题.
您也可以使用启动新实例
$ terminator --title [title]
这似乎对我有用。我在 Crunchbang(Debian 派生的)上使用 BASH
$ echo -en '\e]0;echo works too\a'
Run Code Online (Sandbox Code Playgroud)