topfunky/zsh-simple — comment on commit a133bd33e1dc836321e796be19719d2358932009
File:  line 0
By topfunky:

@dannluciano Interesting! I have a personal rule that if there are more than about 6 lines of code, I make it a separate script instead of a zsh function. I find it easier to maintain that way.

But it's definitely possible as a function.