Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: refering to 2nd from last history parameter?
- X-seq: zsh-users 19768
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: refering to 2nd from last history parameter?
- Date: Thu, 22 Jan 2015 09:17:34 -0800
- In-reply-to: <XnsA42A7D32D20B8davidrayninfocouk@80.91.229.13>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <XnsA42A7D32D20B8davidrayninfocouk@80.91.229.13>
On Jan 22, 12:18pm, zzapper wrote:
}
} ls !$ last parameter of previous command
}
} echo a b c d e f g h
}
} I don't think I can grab 'g' without counting left to right
Not exactly pretty, but in two steps:
!!:-:p
echo !!:$
Messages sorted by:
Reverse Date,
Date,
Thread,
Author