hello,
following code is not working from my .profile (so i commented it),
even when i start the system with X. I am using system provided fvwm. when i
start without X, it sets the PS1 variable correctly, but even that is lost (to
standard $ prompt) once i start X.
in my .profile....
#case $TERM in
#
xterm*)
# HOST=`hostname`
# HOST=${HOST%%.*}
#
PS1='\033]0;[EMAIL PROTECTED]: ${PWD##${HOME}/}\007$ '
# ;;
# *)
#
PS1='[EMAIL PROTECTED]:\w\$ '
# ;;
#esac
from command line; gives following output
and also does not change window title etc.
$ HOST=`hostname`
$
HOST=${HOST%%.*}
$ PS1='\033]0;[EMAIL PROTECTED]: ${PWD##${HOME}/}\007$ '
K]0;[EMAIL PROTECTED]:
/home/badeguruji7$
-it seems this terminal is not
understanding escape seq well and printing them on screen...
Whereas
following is working perfectly ok from command prompt; but when place in
.profile gives various errors...
$ echo -ne "\033]0;[EMAIL PROTECTED]
`pwd`\007" >>> this is changing window/icon title properly
$
PS1='[EMAIL PROTECTED]:\w\$ '
[EMAIL PROTECTED]:~$
can someone help. I found out that my
machine is using vt220 terminal.
I want to have my xterm window title to
reflect: pwd, hostname and user_id dynamically. I am using ksh.
thank you.
-BG
________________________________
~~Kalyan-mastu~~