Next: Setting the path: how
Up: Customizing your shell and
Previous: Startup or run control
The prompt environmental variable is PS1. This is configured
in .bashrc. For example, the following sets the
[amit@onyx]: export PS1="[\u@\h]\w $"
There are a number
of control sequences defined inside the PS1 variable: for example,
\u is the username,
\h is the
hostname of the system and
the current directory. The bash man page has many more -
search the bash man page for PS1 for a complete list.