[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

and change it for your needs.



Paolo Pedaletti, Como, ITALYa

Reply to: