X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=f9d51b2d566054d07732f1801db81dc3aff7334c;hb=1dda332ef8a0fe126318794e6680e469e586835f;hp=b56cd090e65d2317383c41fe284198769e5d5882;hpb=787c3061ef67a7a4dc9db62dfa38aa34b5763282;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index b56cd09..f9d51b2 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -103,6 +103,14 @@ # *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