Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: My zshrc; any sugestions welcome
- X-seq: zsh-users 4798
- From: Marijan Peh <marijan.peh@xxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: My zshrc; any sugestions welcome
- Date: Mon, 1 Apr 2002 12:31:18 +0200
- In-reply-to: <1020326171031.ZM32266@xxxxxxxxxxxxxxxxxxxxxxx>; from schaefer@xxxxxxxxxxxxxxxx on Tue, Mar 26, 2002 at 05:10:31PM +0000
- Mail-followup-to: zsh-users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20020325175935.A1729@xxxxxxxxxxxxx> <Pine.LNX.4.44.0203251101280.5070-100000@xxxxxxxxxxxxxxxx> <20020326103835.A175@xxxxxxxxxxxxx> <1020326151112.ZM32099@xxxxxxxxxxxxxxxxxxxxxxx> <20020326174631.A831@xxxxxxxxxxxxx> <1020326171031.ZM32266@xxxxxxxxxxxxxxxxxxxxxxx>
On Tue, Mar 26, 2002 at 05:10:31PM +0000, Bart Schaefer wrote:
> Oh, silly me. Single-element arrays are treated as scalars, so if the
> command consists of only one word, you get only the first letter, but
> if it consists of multiple words you get the first word. I never tried
> it with a command with no arguments.
>
> So try this:
>
> preexec () {
> print -Pn "\033]0;%n@%m ${${(@)${(z)1}:#*[[:punct:]]*}%% *} %~\007"
> }
I just now noticed that it's not working for 'two_or_more' word job ex.
If i run 'vi .Xresources .vimrc .slrnrc' it only shows 'vi' in titlebar.
With '$1' it works perfectly? (shows complete line).
Why is $1 bad?
--
.~. marijan.peh@xxxxxxxxxxx
/V\ /bin/zsh 4.1.0-dev-4 (i686-pc-linux-gnu)
/( )\ Linux nymos.home.hr 2.4.18-rmap-rml #4
^^ ^^
Messages sorted by:
Reverse Date,
Date,
Thread,
Author