Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

duplicating functions



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

-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/



Messages sorted by: Reverse Date, Date, Thread, Author