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. :) > Regarding phab... I haven't managed to register an account yet... sorry! > > More info: > > ~$ zsh --version > zsh 5.0.5 > > ~$ bash --version > GNU bash, version 4.2.25(1)-release > > Teminology git b2b1097 (just recompiled and installed) > Terminology theme: black > > Elementary v1.12.2 > > Best, > > -- > Stefano > > Fortune of the day: "You will inherit millions of dollars." -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users