setting the PS1 enviroment variable in xterm
Hi there.
This is how the prompt on my xterm looks like : bash-2.05a# I would like it to look like this : [sohail@linux ~/work] > I can do this by setting the PS1 enviroment variable, like : export PS1="[\u@\h\w]>" But how can I make it work automatically when I start an xterm? Making an entery in my ~/.bash_profile or ~/.bashrc won't work. I tried putting an entery in ~/.xinitrc but that doesn't work either. But how then? |
It's handled from /etc/bashrc but personal customizations like
"case $TERM in xterm*) PS1="${WHATEVER}: ";; esac" in ~/.bashrc should work as well. |
Re: setting the PS1 enviroment variable in xterm
Quote:
Code:
#Set the default shell prompt: |
All times are GMT -5. The time now is 10:18 AM. |