use function keyword through out the code
authorThilo Six <grml@xk2c.de>
Sun, 5 Feb 2017 11:47:15 +0000 (12:47 +0100)
committerFrank Terbeck <ft@grml.org>
Sun, 5 Feb 2017 12:42:22 +0000 (13:42 +0100)
commit57c97bc2ef1484c7aaaa7e96d28da6371cd7fbb8
treeb9cbfff74cc6cd965b07c882825eabd43fc7179a
parentfbdbd827671eb277487c32c25f32da11dbf408bb
use function keyword through out the code

From man zsh:
-----------------------------------------------------------------------
Note also the unhelpful interaction of  aliases  and  function  defini‐
tions:

alias func='noglob func'
func() {
    echo Do something with $*
}

Because  aliases  are expanded in function definitions, this causes the
following command to be executed:

noglob func() {
    echo Do something with $*
}

which defines noglob as well as func as functions with the body  given.
To  avoid this, either quote the name func or use the alternative func‐
tion definition form `function func'.
-----------------------------------------------------------------------

Therefore make use of the function keyword through out the code for
defining shell functions. Also harmonize its usage, where it is used allready.
etc/zsh/zshrc