Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: refering to 2nd from last history parameter?
- X-seq: zsh-users 19780
- From: zzapper <david@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: refering to 2nd from last history parameter?
- Date: Mon, 26 Jan 2015 12:05:14 +0000 (UTC)
- 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
- Organization: Your Company
- References: <XnsA42A7D32D20B8davidrayninfocouk@80.91.229.13> <CAECNH1RyC2Q-5y3Ynk-F+cJvtRvFPWdvcpDOqXmrJB=uSJCbTQ@mail.gmail.com>
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote in
news:CAECNH1RyC2Q-5y3Ynk-F+cJvtRvFPWdvcpDOqXmrJB=uSJCbTQ@xxxxxxxxxxxxxx:
> On Thu, 22 Jan 2015 12:18:19 +0000
> zzapper <david@xxxxxxxxxxxxxx> wrote:
>> I don't think it's possible
>>
>> 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
>
> This isn't actually a question :-). What are you trying to do? Are
you
PWS
I didn't immediately appreciate your alternative solution
########### alt. and alt=
bindkey '\e.' insert-last-word
autoload -Uz copy-earlier-word
zle -N copy-earlier-word
bindkey '\e=' copy-earlier-word
Still think it's a pity that there's no !$-1 , !$-2 etc
BTW if you tab complete
echo !$-1
I get !3569NVXZhikms1
--
zzapper
https://twitter.com/dailyzshtip
---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author