Re: xterm&title
Ciao Nikos Voutsinas,
> I would like (somehow) to change dynamically xterm title according to the LOGNAME and HOSTNAME env. Anyone who can help?
you can start from this function in /etc/profile:
if [ -n "$DISPLAY" ]; then
cd ()
{ builtin cd $* && echo -n -e "\\033]0; $TERM: $PWD \a"; }
echo -n -e "\\033]0; $TERM: $PWD \a"
export -f cd
fi
and change it for your needs.
Ciao
--
Paolo Pedaletti, Como, ITALYa
paolo.pedaletti@flashnet.it
Reply to:
- References:
- xterm&title
- From: "Nikos Voutsinas" <nvoutsin@noc.uoa.gr>