|
|
One variable in .login or .profile that you might want to adapt is your prompt variable. The prompt variable contains the character or characters that the shell prompts you to enter a command with. The main prompt string is contained in the Korn shell or Bourne shell variable PS1. If you press <Enter> to start a new line without completing a command, the shell will prompt you with the PS2 (second level) prompt variable. (If you are using the C shell, your prompt string is stored in the variable prompt.)
For example:
$In the Korn shell only, you can make the prompt string display your current working directory by editing .profile and setting the variable (as in the .profile above) like this:echo "
>hello, world!
>This is a test.
>"
hello, world! This is a test. $
You must then reset your environment for the change to take effect. See ``Resetting the environment'' for details.