Next: Setting the path: how
Up: Customizing your shell and
Previous: Startup or run control
Contents
The prompt environmental variable is PS1. This is configured
in .bashrc. For example, the following sets the
prompt,
[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 \w is
the current directory. The bash man page has many more -
search the bash man page for PS1 for a complete list.
Amit Jain
2013-04-22