different prompt in text and xterm
hello!
my .bashrc file reads as follows:
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If running interactively, then:
if [ "$PS1" ]; then
# set a fancy prompt
PS1='\u@\H:\w\$ '
# If this is an xterm set the title to user@host:dir
#case $TERM in
#xterm*)
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
# ;;
#*)
# ;;
#esac
fi
now, when i get a login prompt, it is deshmukh.work login:
when i log in, either as a root or as a user, the promt changes to
sandip@deshmukh:~$
when i open an x-term in windowmaker, the prompt is sandip@deshmukh.work:~$
any guesses why is it happening?
i want it to be sandip@deshmukh.work:~$ all the time!
thanx
-sandip
Reply to: