From: martin f. krafft Date: Mon, 20 Jul 2009 08:40:58 +0000 (+0200) Subject: rename latin dict function to tn and prefix auto-generated functions to prevent alias... X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/f2a31b9ea699dc8a2b48c1dd053d794386df310e?ds=inline rename latin dict function to tn and prefix auto-generated functions to prevent alias expansion --- diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases index bbb4dbe..b77954d 100644 --- a/.zsh/zshrc/30_aliases +++ b/.zsh/zshrc/30_aliases @@ -137,16 +137,16 @@ _LANGUAGES[de]=deu _LANGUAGES[es]=spa _LANGUAGES[fr]=fra _LANGUAGES[it]=ita -_LANGUAGES[lt]=lat +_LANGUAGES[tn]=lat for l0 in ${(k)_LANGUAGES}; do for l1 in ${(k)_LANGUAGES}; do - eval "_${l0}-${l1}() { _d -d fd-${_LANGUAGES[$l0]}-${_LANGUAGES[$l1]} \$* }" - eval "${l0}-${l1}() { d -d fd-${_LANGUAGES[$l0]}-${_LANGUAGES[$l1]} \$* }" + eval "function _${l0}-${l1}() { _d -d fd-${_LANGUAGES[$l0]}-${_LANGUAGES[$l1]} \$* }" + eval "function ${l0}-${l1}() { d -d fd-${_LANGUAGES[$l0]}-${_LANGUAGES[$l1]} \$* }" done done unset '_LANGUAGES[en]' for l in ${(k)_LANGUAGES}; do - eval "${l}() { (_${l}-en \$*; _en-${l} \$*) | more }" + eval "function ${l}() { (_${l}-en \$*; _en-${l} \$*) | more }" done unset _LANGUAGES