|
|
Set the title of the Terminal window with cd
After reading this hint, I went to my terminal and discovered that the path was already in the title bar. However, I had never done this hint or the other two mentioned. I then discovered that during local access, the title bar didn't change as I changed directories. However, if I SSHed into a remove server, the title bar changed to the user I was logged in as and the current directory. It looks somethink like this: "username@server:/home - ssh - 100x31". I'm not sure if this the default behavior of the terminal or if I applied some other hint I ran across. If I did, I sure can't remember it!
Set the title of the Terminal window with cd
I noticed this too one day. Look at your .bashrc on the remote server, and you'll find some commands that set the window title of an xterm session to user@localhost:/path. Well, when Terminal.app is set to emulate an xterm session, it picks up the window title change, too. The same code works if you copy it into your .bash_profile or .bashrc file on your Mac.
Set the title of the Terminal window with cd
PS1='\[\033]0;\u@\h:\w\007\]\u@\h:\w) ' |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.06 seconds |
|