Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: My zshrc; any sugestions welcome
- X-seq: zsh-users 4778
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Marijan Peh <marijan.peh@xxxxxxxxxxx>
- Subject: Re: My zshrc; any sugestions welcome
- Date: Mon, 25 Mar 2002 11:03:11 -0800 (PST)
- Cc: zsh-users <zsh-users@xxxxxxxxxx>
- In-reply-to: <20020325175935.A1729@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: schaefer@xxxxxxxxxxxxxxxx
On Mon, 25 Mar 2002, Marijan Peh wrote:
> > It'd probably be better to use ${${(z)1}[1]} there, rather than $1, if
> > you want just the command name. Or even ${${${(z)1}:#*[[:punct:]]*}[1]}
> > in case the first "word" is an open-paren or something.
>
> 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]}
^^^
> > kill -9 `print -r $pid`
> >
> > Any reason why that isn't just `kill -9 $pid'?
>
> newlines (it can also go with `print -n $pid`)
Ah. You want
kill -9 $=pid
> Thanks for cool tips.
Sure.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author