[nycbug-talk] tcsh PS1 syntax

Bob Ippolito bob
Thu Oct 14 11:00:24 EDT 2004

On Oct 14, 2004, at 10:22 AM, pete at nomadlogic.org wrote:

>     does anyone know of a good reference for PS1 syntax in tcsh
> specifically, and even better would be a ref. for .tcshrc in general.
> i'd like to have my PS1 truncate the path after a certain amount of
> chars so i don't end up with a commandline like this:
> [wright at korna]/shots/edu/trnpst_wright/pix/out/ 
> trnpst_wright_tt17a_comp_v44/tvfa_lg10>
> i know if several good bash PS1 configs...but i'm not too sure if they  
> are
> portable to csh and tcsh.

I don't think PS1 is even used with tcsh, I think that is a bash  
thing..  I've always used "set prompt" in tcsh.. look in the man page  
under prompt for all the %commands.


More information about the talk mailing list