<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MrBrown blob &#187; bash</title>
	<atom:link href="http://charles.lescampeurs.org/tag/bash/feed" rel="self" type="application/rss+xml" />
	<link>http://charles.lescampeurs.org</link>
	<description>random bits.</description>
	<lastBuildDate>Sat, 10 Apr 2010 09:02:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Automatically set title on iTerm tabs</title>
		<link>http://charles.lescampeurs.org/2008/05/07/automatically-set-title-on-iterm-tabs</link>
		<comments>http://charles.lescampeurs.org/2008/05/07/automatically-set-title-on-iterm-tabs#comments</comments>
		<pubDate>Wed, 07 May 2008 12:10:53 +0000</pubDate>
		<dc:creator>CharlyBr</dc:creator>
				<category><![CDATA[Command line]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[iTerm]]></category>

		<guid isPermaLink="false">http://charles.lescampeurs.org/?p=11</guid>
		<description><![CDATA[If like me you use iTerm for your terminal sessions, this is the tips to dynamically set the tab title. As I&#8217;m using the bash shell, the tab title can be automatically set with the PROMPT_COMMAND variable. You can set this variable in /etc/profile or in your .bashrc Mine is like this : export PROMPT_COMMAND=&#8217;echo [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2008%2F05%2F07%2Fautomatically-set-title-on-iterm-tabs"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2008%2F05%2F07%2Fautomatically-set-title-on-iterm-tabs&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p style="text-align: center;"><a href="http://charles.lescampeurs.org/wp-content/uploads/2008/05/picture-1.png"><img class="size-full wp-image-12" title="iTerm tabs title" src="http://charles.lescampeurs.org/wp-content/uploads/2008/05/picture-1.png" alt="" width="361" height="135" /></a></p>
<p>If like me you use <a title="iTerm.app" href="http://iterm.sourceforge.net/" target="_blank">iTerm</a> for your terminal sessions, this is the tips to dynamically set the tab title.</p>
<p>As I&#8217;m using the bash shell, the tab title can be automatically set with the <tt>PROMPT_COMMAND</tt> variable. You can set this variable in <tt>/etc/profile</tt> or in your <tt>.bashrc</tt></p>
<p>Mine is like this :</p>
<p>export PROMPT_COMMAND=&#8217;echo -ne &#8220;\033]0;${USER}@${HOSTNAME%%.*}\007&#8243;&#8216;</p>
<p>The content of the variable is executed each time bash prints your prompt. Here echo is executed with the escape sequence to set the term title.</p>
<h2>More informations</h2>
<p>Some readings about this subject :</p>
<ul>
<li><a href="http://xanana.ucsc.edu/xtal/iterm_tab_customization.html" target="_blank">iTerm Shell Customizations for bash, zsh and tcsh</a></li>
<li><a href="http://www.faqs.org/docs/Linux-HOWTO/Bash-Prompt-HOWTO.html" target="_blank">an old Bash prompt HOWTO</a></li>
<li><a href="http://www.gnu.org/software/bash/" target="_blank">Bash Homepage</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://charles.lescampeurs.org/2008/05/07/automatically-set-title-on-iterm-tabs/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
