Changing your csh prompt

Your system's default prompt might be just a dollar sign ($) or perhaps a dollar sign and date, or other information as outlined in the Set your csh prompt promptly sidebar. You can change this prompt using the following steps. You start by finding your prompt statement (Code Listing 8.16), then modify it in your editor (Figure 8.6).

To change your csh prompt:

1.
grep path ~/.cshrc ~/.login
To begin, list the configuration files located in your home directory and in the /etc directory. Look through your system configuration files for your prompt statement. It'll look something like set prompt="> " or set prompt=" `hostname`> ". It's likely in your .cshrc file, as shown in Code Listing 8.16. The Setting your csh prompt ...

Get Unix: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.