e54958b91c
with the ZIM_CONFIG_FILE environment variable. Fixes #479.
11 lines
365 B
Plaintext
11 lines
365 B
Plaintext
_zimfw_build_login_init() {
|
|
local -r ztarget=${ZIM_HOME}/login_init.zsh
|
|
# Force update of login_init.zsh if it's older than .zimrc
|
|
if [[ ${ztarget} -ot ${ZIM_CONFIG_FILE:-<%= home %>/.zimrc} ]]; then
|
|
command mv -f ${ztarget}{,.old} || return 1
|
|
fi
|
|
_zimfw_mv =(
|
|
print -nR "<%= render_escaped("src/templates/login_init.zsh.erb") %>"
|
|
) ${ztarget}
|
|
}
|