[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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: