summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dce95d8)
It may happen, that /etc/zsh/zshrc and ~/.zshrc are both the same file,
in which case everything is loaded twice. This should fix the issue.
# *all* aliases, for example, use @@INSERT-aliases-all@@.
#}}}
# *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
# zsh profiling {{{
# just execute 'ZSH_PROFILE_RC=1 zsh' and run 'zprof' to get the details
if [[ $ZSH_PROFILE_RC -gt 0 ]] ; then