|
|
Why use a script?
> Create a script called chg_dir.sh
Why use a script? -hostname only?
Can this be done so that only the hostname displays in the title?
Re: Why use a script? -hostname only?
Generalized tcsh example:
alias xtitle printf '"\e]2;\!*\a"' [There are backslashes before the 'e', '!', and 'a' characters in the argument to printf; this avoids using non-printable characters in the alias] alias cwdcmd xtitle '$cwd' Replace the argument to xtitle with whatever you want displayed in the Terminal title bar when changing directories in the shell, like: alias cwdcmd xtitle '`dirs`' Run: unalias cwdcmd xtitle anything ... to set the title bar to something that doesn't change.
Why use a script? -hostname only - success
Ah, silly me. I got it to work by specifying machine name: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks 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.05 seconds |
|