Doogee wrote:You can see in my screenshot the bash terminal is rather lax.
Your bash is not getting started as a login shell. The terminal you are using (xterm, rxvt, gnome-terminal, etc) usually has an option like "-ls" that starts the shell as a login shell, or you may have to pass bash the "-l". You could change the properties of the shortcut you use to start the terminal so this happens. What happens when you start bash as a login shell it will read these environment files if they exist:
/etc/profile
$HOME/.bash_profile
$HOME/.bash_login
$HOME/.profile
When bash is started as an interactive shell (not a login shell) it will only read the "$HOME/.bashrc" file. See the INVOCATION section of the
bash man page.
Your prompt is set by the contents of the "PS1" variable that is normally set up in the list of files when bash is invoked as a login shell. You can customize this however you want and the bash man page also tells you what special replacement variables can be used in the PS1 variable (see the PROMPTING section of the man page).
That was a long winded answer and there actually are several other ways you can make sure this is set up but using the "-ls" (or equivelant) param when starting the terminal is the most appropriate I would think. Here are some other ideas:
http://www.lunar-linux.org/pipermail/lu ... 03569.html