Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Keyboard Macro?
- X-seq: zsh-users 11432
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Keyboard Macro?
- Date: Thu, 19 Apr 2007 16:53:57 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- References: <Xns9916D30A85EE9zzappergmailcom@xxxxxxxxxxx> <20070418202655.GF23011@xxxxxxxxxxxxxxx> <070418195155.ZM32237@xxxxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote in
news:070418195155.ZM32237@xxxxxxxxxxxxxxxxxxxxxx:
> } bindkey -s '^xC' 'cp _!\^ _!$'
>
> or
> bindkey -s 'cpfl' 'cp _!\^ _!$'
>
> Gotta type it fast, though.
>
> Why not e.g.
>
> cpfl() {
> emulate -L zsh
> local -a last
> last=( ${(z)history[$[HISTCMD-1]]} )
> cp -iv $last[2] $last[-1]
> }
>
thnx implemented Bart's script. the BindKeys didn't work for me, I think it's
because I have vi edit mode enabled?!?
--
zzapper
http://www.rayninfo.co.uk/vimtips.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author