1e4d1e784d
Pattern must match from the beginning (`##`). Also don't quote ${ZIM_HOME}. We don't want to have an array like ('${ZIM_HOME}' '/path/to/zim_home'), so it needs to be unquoted for the uniqueness to work.
10 lines
409 B
Plaintext
10 lines
409 B
Plaintext
_zimfw_build_login_init() {
|
|
# Array with unique dirs. ${ZIM_HOME} or any subdirectory should only occur once.
|
|
local -Ur zscriptdirs=(${ZIM_HOME} ${${_zdirs##${ZIM_HOME}/*}:A})
|
|
local -r zscriptglob=("${^zscriptdirs[@]}/(^*test*/)#*.zsh(|-theme)(N-.)")
|
|
local -r ztarget=${ZIM_HOME}/login_init.zsh
|
|
_zimfw_mv =(
|
|
print -Rn "<%= render_escaped("src/templates/login_init.zsh.erb") %>"
|
|
) ${ztarget}
|
|
}
|