Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: My zshrc; any sugestions welcome



On Tue, Mar 26, 2002 at 03:11:11PM +0000, Bart Schaefer wrote:
> On Mar 26, 10:38am, Marijan Peh wrote:
> } Subject: Re: My zshrc; any sugestions welcome
> }
> } > > This display just first letter of current running job. ex:
> } > > I run 'top' but is shows only 't' in titlebar.
> } > 
> } > Oh, sorry, in double quotes you need ${${(@)${(z)1}:#*[[:punct:]]*}[1]}
> } >                                          ^^^
> } 
> } Nope, still the same.
> 
> Hmm, it works for me.  Show us your whole command line, again?

preexec () {print -Pn "\033]0;%n@%m ${${(@)${(z)1}:#*[[:punct:]]*}[1]} %~\007"}

-- 
 .~.   marijan.peh@xxxxxxxxxxx
 /V\   /bin/zsh 4.1.0-dev-4 (i686-pc-linux-gnu)
/( )\  Linux nymos.home.hr 2.4.18-rmap-rml #3
^^ ^^



Messages sorted by: Reverse Date, Date, Thread, Author