Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use PROMPT_COMMAND to set titles on iTerm tabs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use PROMPT_COMMAND to set titles on iTerm tabs
Authored by: corti on Nov 29, '04 05:05:46PM

Just to point out that the PROMPT_COMMAND variable does not set the windows title. It is a command that is executed before before issuing a prompt.

In the original hint the PROMPT_COMMAND contains an echo command which is the command actually changing the title.

You can use PROMPT_COMMAND to do whatever you want. An example could be to print out the date before the prompt:
export PROMPT_COMMAND=date

Matteo



[ Reply to This | # ]