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


Click here to return to the 'Why use a script? -hostname only - success' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Why use a script? -hostname only - success
Authored by: baba on May 03, '02 11:08:22AM

Ah, silly me. I got it to work by specifying machine name:
alias cd 'chdir <backslash>!*; set prompt="%{<backslash>033]0;%m<backslash>007%}[%~]%# "'
so now I have the host in the window and the current path at the prompt.
Most exellent.
The big question now is can I set the terminal background color according to the host??? Right now I keep a bunch of saved term sessions which specify colors for certain hosts. I'd rather it be automatic.



[ Reply to This | # ]