Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: duplicating functions
- X-seq: zsh-users 9537
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: duplicating functions
- Date: Fri, 21 Oct 2005 09:35:08 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <kqoel1ltvbmfqr9jg46tkj2p1gh9b9t6io@xxxxxxx> <200510202013.20744.arvidjaar@xxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Thu, 20 Oct 2005 20:13:20 +0400, wrote:
>On Thursday 20 October 2005 13:35, zzapper wrote:
>> Hi,
>> I have a series of functions defined .zshenv
>>
>> function g0() { gmark $0 $* }
>> function g1() { gmark $0 $* }
>> function g2() { gmark $0 $* }
>> function g3() { gmark $0 $* }
>> function g4() { gmark $0 $* }
>> function g5() { gmark $0 $* }
>> function g6() { gmark $0 $* }
>> function g7() { gmark $0 $* }
>> function g8() { gmark $0 $* }
>> function g9() { gmark $0 $* }
>>
>> Where gmark contains the code and $0 is used to determine which original
>> function was called
>>
>> Is there are simpler way of doing this
>
>function g{0..9} { gmark $0 $* }
>
>but I still do not understand what's wrong with calling "gmark gN ..."
>directly
>
>-andrey
Andrey,
Because I'm obsessed with typing the minimum numbers of characters <G> like many *nixers
--
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author