achiurizo / consular

Terminal automation
http://rdoc.info/github/achiu/consular/master/file/README.md
MIT License
813 stars 46 forks source link

How to set title of a tab #56

Open Florent2 opened 13 years ago

Florent2 commented 13 years ago

Hi,

I try to use terminitor with iTerm2. I could not find how to set the title of a tab. I've tried:

tab :name => "console" do
  run "rails console"
end

but without success, the new tab is titled with the default tab title "Shell".

Florent2 commented 13 years ago

Found a workaround (using bash):

tab :name => "console" do
  run "echo -e \"\\033];console\\007\""
  run "rails console"
end

From http://sites.google.com/site/iterm2home/support "How do I change a tab's title?"