diff --git a/templates/zlogin b/templates/zlogin index f05b263..bffb942 100644 --- a/templates/zlogin +++ b/templates/zlogin @@ -17,7 +17,7 @@ fi } - zim_mods=${ZDOTDIR:-${HOME}}/.zim/modules + zim_mods=${ZIM_HOME}/modules setopt EXTENDED_GLOB # zcompile the completion cache; siginificant speedup. diff --git a/templates/zshrc b/templates/zshrc index e640dcc..0f9665c 100644 --- a/templates/zshrc +++ b/templates/zshrc @@ -4,8 +4,11 @@ # User configuration sourced by interactive shells # +# Change default zim location +export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim + # Source zim -if [[ -s ${ZDOTDIR:-${HOME}}/.zim/init.zsh ]]; then - source ${ZDOTDIR:-${HOME}}/.zim/init.zsh +if [[ -s ${ZIM_HOME}/init.zsh ]]; then + source ${ZIM_HOME}/init.zsh fi