From f2a31b9ea699dc8a2b48c1dd053d794386df310e Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 20 Jul 2009 10:40:58 +0200 Subject: [PATCH] rename latin dict function to tn and prefix auto-generated functions to prevent alias expansion --- .zsh/zshrc/30_aliases | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5