动态改变iTerm2标签标题的Ruby / Rails [英] Change iTerm2 tab title dynamically for Ruby/Rails

查看:230
本文介绍了动态改变iTerm2标签标题的Ruby / Rails的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用iTerm2,通常有许多选项卡中打开。不幸的是所有选项卡给我相同的标题红宝石,因为它是所有Ruby脚本。

I am using iTerm2 and usually have many tabs open. Unfortunately all tabs show me the same title "ruby" as it is all ruby scripts.

但一个是轨道服务器,其他轨道控制台,接下来就是叉勺,...我想动态设置选项卡标题为服务器,控制台或类似的,只要过程是什么跑步和回当他们完成了默认的(庆典)。

But one is rails server, the other rails console, the next is "spork", ... I would like to set the tab titles dynamically to "server", "console" or something similar as long as the processes are running and back to the default ("bash") when they are finished.

任何人知道如何做到这一点?

Anybody knows how to do this?

感谢。

推荐答案

此命令将设置一个选项卡对MY_NEW_TITLE标题

This command will set a tab's title to MY_NEW_TITLE

回声-e\\ 033]; MY_NEW_TITLE \\ 007

echo -e "\033];MY_NEW_TITLE\007"

这篇关于动态改变iTerm2标签标题的Ruby / Rails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆