On Wed, 24 Dec 2014 10:00:10 +0000 Tom Hacohen <tom.haco...@samsung.com> said:

> On 24/12/14 09:50, Carsten Haitzler (The Rasterman) wrote:
> > On Wed, 24 Dec 2014 09:46:32 +0000 Tom Hacohen <tom.haco...@samsung.com>
> > said:
> >
> >> On 16/12/14 23:13, Carsten Haitzler (The Rasterman) wrote:
> >>> On Tue, 16 Dec 2014 12:41:55 +0000 Stefano <pietran...@gmail.com> said:
> >>>
> >>>> On Tue, 16 Dec 2014 11:29:17 +0000
> >>>> TH wrote:
> >>>>
> >>>>> On 16/12/14 11:24, Carsten Haitzler (The Rasterman) wrote:
> >>>>>> On Tue, 16 Dec 2014 10:18:06 +0000 Stefano <pietran...@gmail.com> said:
> >>>>>>
> >>>>>>
> >>>>>> i use zsh... and my title changes in the tabs... in fact i have it set
> >>>>>> so every time my prompt appears it changes the title.... it works for
> >>>>>> me here...
> >>>>>>
> >>>>>
> >>>>> Same, but I had to set PROMPT_COMMAND to output the right escapes...
> >>>>>
> >>>>
> >>>> Thanks for the information.
> >>>>
> >>>> I have tried with both my own prompt (which uses prezto) and the system
> >>>> default zshrc (attached) without success though. Still, when I call bash,
> >>>> the tab title is populated.
> >>>>
> >>>> I have noticed that I do not have a PROMPT_COMMAND variable set, what
> >>>> would be the best way to do that?
> >>>
> >>> i have this in my zshrc:
> >>>
> >>> function precmd {
> >>> # get a title at random from the title list
> >>>     if [ $TERM = xterm ]; then
> >>>       TLINES=`wc -l $ZH/titles | awk '{print $1;}'`
> >>>       TLINE=$[ ${RANDOM} % $TLINES ];
> >>>       TLINE=$[ $TLINE + 1 ];
> >>>       TITLE=`head -$TLINE < $ZH/titles | tail -1`
> >>>       echo -ne '^[]0;'$TITLE'\007'
> >>>     fi
> >>> }
> >>>
> >>> :) titles is just a text file like:
> >>>
> >>> Nym
> >>> Frub
> >>> Blum
> >>> Flim
> >>> Flam
> >>> Flum
> >>> ...
> >>> Tim says Flim
> >>> I frub a lot
> >>> I need a shrubbery!
> >>> Give me your herring!
> >>> That goes off like a frog in a sock!
> >>> ...
> >>>
> >>> etc. :)
> >>
> >> I know... I've had the dubious pleasure of using your computer before. :)
> >
> > wasn't it fun? didn't things just work awesomely? :)
> >
> 
> Was great fun, though I'd stick with my setup of showing the normal 
> title... :P

normal titles are so... boring!

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to