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


thanks | 10 comments | Create New Account
Click here to return to the 'thanks' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
thanks
Authored by: spnyc on May 17, '02 10:17:10AM

that rocked. i've been wanting to add color to my shell for a while



[ Reply to This | # ]
cool, can we reset
Authored by: brettc on May 17, '02 11:24:27AM

I want to try this one, but be able to reset it back easily if not appropriate for my workflow. What's the best command to put it back to normal, or is "set prompt" for this session only. Sorry to be a Unix dummy...



[ Reply to This | # ]
Re:cool, can we reset
Authored by: Viridian on May 17, '02 12:22:56PM

brettc,

I'm a complete Unix newbie, and don't know of an easy way to switch prompts. I understand that it's possible in bash, zsh and other shells with better scripting capabilities than tcsh. I keep several in ~/Library/init/tcsh/.environment.mine and comment out the ones I'm not using.



[ Reply to This | # ]
Re:cool, can we reset
Authored by: Viridian on May 17, '02 12:24:59PM

brettc,

I'm a complete Unix newbie, and don't know of an easy way to switch prompts. I understand that it's possible in bash, zsh and other shells with better scripting capabilities than tcsh. I keep several in ~/Library/init/tcsh/.environment.mine and comment out the ones I'm not using.



[ Reply to This | # ]
cool, can we reset
Authored by: Riken on May 17, '02 01:14:00PM

The standard prompt is:

set prompt = "[%m:%c3]"

If you don't put a set prompt command in a startup file it only applies for that terminal session.



[ Reply to This | # ]
cool, can we reset
Authored by: Riken on May 17, '02 01:38:24PM

Sorry should be:

set prompt = "[%m:%c3] %n%# "



[ Reply to This | # ]