tcsh

Chuck Robey chuckr at chuckr.org
Thu Apr 28 19:07:19 PDT 2005


The first thing I do, after I've installed a new system (just before I 
copy over the ssh data) is to copy my .cshrc  to my home dir.  What's so 
important?  I really like the two statements, which I show below, which 
give me my prompt:

set     prompt="%m:%{^[[34m%}`id -nu`%{^[[0m%}:%~:%{^[[31m#%h^[[0m%}%#"
alias   cd      'cd \!*;set prompt="%m%{^[[32m%}:`id 
-nu`%{^[[0m%}:%~:%{^[[31m#%h^[[0m%}%#"'

My mailer is adding carriage returns to the cd line, maybe even to the 
prompt line, live with it.

Any chance that something so basic as this, that improves things so 
awfully much, could be added to the .tcshrc?  If the idea is liked well 
enough, I will edit it enough so that the special use of prompt strings 
that are specific to tcsh is made conditional.


More information about the freebsd-current mailing list