View Single Post
  #3  
Old March 27th, 2003, 01:46 PM
michaelsanford's Avatar
michaelsanford michaelsanford is offline
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montrιal
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
Example...

Example: my ~/.tcshrc reads:

set prompt = "[%M:%B%~%b]%# "

Which gives a prompt of the following format:
[amras.no-ip.local.:~]%
[amras.no-ip.local.:/var/run]%

Decompose it:
- The full host name is displayed. (%M)
- The path relative to ~/ is displayed. (%~)
- The path is bolded (%B %b).
- The prompt character is either '%' for normal users or 'root#' ... for root (%#).

Also. I have a dynamic DNS client with no-ip.com so I set my local host name to amras.no-ip.local for consistency.

Giaguara, if you'd like to append more info on setting colours would be (I have bold colours configured in the terminal window settings, myself).
__________________
michaelsanford.com • Blog • Twitter • Tumblr • LinkedIn
• iMac Aluminum 24" |
MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD
• iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD
• AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2•120 GB RAID 1, 2•500 GB RAID 0
Reply With Quote