Tejus's Programming and startup blog

  • Archive
  • RSS
  • Ask me anything

Manually Set the Terminal Title in OSX

Having the process automatically set the name of the terminal in OSX almost never works for me. A little googling turned up the bash sequence for setting the process name in the terminal.

echo -n -e "\033]0;TerminalName\007"
This command will set the name of the terminal to “TerminalName.” Instead of trying to remember this string, I created a little shellscript:
#!/bin/bash

echo -n -e "\033]0;$1\007"
I called this script setname and put it in /usr/local/bin. Then you can call it with:
setname TerminalName

  • 2 years ago
  • Comments
  • Permalink
  • Share
    Tweet

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

Avatar

I'm Tejus Parikh and this is my blog about programming, startups, and other technology related topics.

The vast majority of the posts are about Java or Ruby code, with a few about startups or gadgets thrown in for color.

You can learn more about me on Github and my personal homepage.

Me, Elsewhere

  • @vi_jedi on Twitter
  • Facebook Profile
  • Linkedin Profile
  • vijedi on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr