Revert "Make sure grmlzshrc is only loaded once"
authorChristian Hofstaedtler <ch@grml.org>
Sun, 24 Jul 2011 13:15:50 +0000 (15:15 +0200)
committerChristian Hofstaedtler <ch@grml.org>
Sun, 24 Jul 2011 13:15:50 +0000 (15:15 +0200)
This reverts commit 1dda332ef8a0fe126318794e6680e469e586835f.
This breaks interactively sourcing zshrc (wherever it is installed, or at all),
when it (or another version) was already loaded.

Another way of fixing the ".local is loaded twice" issue is under
discussion.

etc/zsh/zshrc

index b8c950e..d5bbfa0 100644 (file)
 #   *all* aliases, for example, use @@INSERT-aliases-all@@.
 #}}}
 
-# Only load once
-[[ ${(t)GRML} != *association* ]] && typeset -gA GRML
-if (( ${GRML[ZSHRC_LOADED]} )); then
-    return 0
-else
-    GRML[ZSHRC_LOADED]=1
-fi
-
 # zsh profiling {{{
 # just execute 'ZSH_PROFILE_RC=1 zsh' and run 'zprof' to get the details
 if [[ $ZSH_PROFILE_RC -gt 0 ]] ; then