Changing Your
csh
|
xmission> grep -i path ~/.cshrc ~/.login .cshrc:set path = (/usr/local/bin /usr/ |
|
1. |
grep -i path ~/.cshrc ~/.login
|
|
|
2. |
cp ~/.cshrc ~/.cshrc.backup
|
|
|
3. |
vi .cshrc
|
|
|
4. |
set path = (/usr/local/bin /usr/bin Edit the path statement to add the full path to the bin subdirectory in your home directory, as shown in Figure 8.6 . Figure 8.6. Edit your path statement to add your home directory.
|
|
|
5. |
Save the file and exit from your editor. Refer to Chapter 4 for help if you need it.
Code Listing 8.20. Here's your new path statement!
|
|
|
6. |
su - yourid
|
|
|
7. |
echo $path
|
Changing Your csh PromptYour system's default prompt might be just a dollar sign ( $ ) or perhaps a dollar sign and date, or other information as outlined in the Setting Your csh Prompt Promptly sidebar. You can change this prompt using the following steps. You start by finding your prompt statement ( Code Listing 8.21 ), then modifying it in your editor ( Figure 8.7 ). Figure 8.7. Edit your prompt to include the details you want.
To change your csh prompt:
Code Listing 8.22. Test out your new prompt to see if you like it.
|