Click to See Complete Forum and Search --> : prompt does not change


MrPatel
11-16-2002, 09:35 PM
i changed my console prompt to look different in /etc/profile

It looks something like this:

[xlnk@shizat /]$

Now in console mode with no xwindows, it works, but if i start up fluxbox, and open up aterm it shows this as my prompt:

bash-2.05a$

how can i change the aterm prompt?

AdaHacker
11-16-2002, 10:27 PM
By default, aterm starts with a normal sub-shell, not a login shell. When a shell session is started as a login shell, it will source /etc/profile. However, if the shell is not started as a login shell, it will not source either of these files. You can make aterm use a login shell by starting it with the -ls option. If you are so inclined, you can make a login shell the default for aterm by adding the line
Aterm.loginShell: true
to your ~/.Xdefaults.

MrPatel
11-17-2002, 09:58 AM
Thanks!

GaryJones32
11-20-2002, 07:06 AM
check this out when put at the bottom of your .bashrc

if [ "$TERM" = "linux" ]
then
#this is the console
export PS1="PUT_CURSOR_JUNK_HERE"
else
#this is x
export PS1="X_CURSOR"
fi