diff options
author | Mateusz Galazyn | 2022-10-24 11:19:54 +0200 |
---|---|---|
committer | Mateusz Galazyn | 2022-10-24 11:19:54 +0200 |
commit | 1329ab01a8017a1c663c85d7b77a84ff6268ac02 (patch) | |
tree | 47d44c850c712728e47c7a1ed961c1c862d3a21c /zimfw.zsh.patch | |
parent | 080691cae27275f14c22f3fa4858102a18d3e7d9 (diff) | |
download | aur-1329ab01a8017a1c663c85d7b77a84ff6268ac02.tar.gz |
Updated zimfw.zsh.patch for newer version
Diffstat (limited to 'zimfw.zsh.patch')
-rw-r--r-- | zimfw.zsh.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zimfw.zsh.patch b/zimfw.zsh.patch index 9b463517c7bc..68bf46c21fa4 100644 --- a/zimfw.zsh.patch +++ b/zimfw.zsh.patch @@ -1,5 +1,5 @@ diff --git a/zimfw.zsh b/zimfw.zsh -index fe05e46..8251aff 100644 +index fda3f1a..0d4b6ca 100644 --- a/zimfw.zsh +++ b/zimfw.zsh @@ -52,10 +52,6 @@ _zimfw_mv() { @@ -7,15 +7,15 @@ index fe05e46..8251aff 100644 _zimfw_build_init() { local -r ztarget=${ZIM_HOME}/init.zsh - # Force update of init.zsh if it's older than .zimrc -- if [[ ${ztarget} -ot ${ZDOTDIR:-${HOME}}/.zimrc ]]; then +- if [[ ${ztarget} -ot ${ZIM_CONFIG_FILE:-${ZDOTDIR:-${HOME}}/.zimrc} ]]; then - command mv -f ${ztarget}{,.old} || return 1 - fi _zimfw_mv =( print -R "zimfw() { source ${ZIM_HOME}/zimfw.zsh \"\${@}\" }" print -R "zmodule() { source ${ZIM_HOME}/zimfw.zsh \"\${@}\" }" -@@ -65,18 +61,16 @@ _zimfw_build_init() { - if (( ${#_zfunctions} )) print -R 'autoload -Uz -- '${_zfunctions#${~zpre}} - print -R ${(F)_zcmds#${~zpre}} +@@ -94,18 +90,16 @@ _zimfw_build_init() { + fi + done ) ${ztarget} + chmod -R u+rX,g+rX,o+rX "${ZIM_HOME}" &>/dev/null } @@ -23,7 +23,7 @@ index fe05e46..8251aff 100644 _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 ${ZDOTDIR:-${HOME}}/.zimrc ]]; then +- if [[ ${ztarget} -ot ${ZIM_CONFIG_FILE:-${ZDOTDIR:-${HOME}}/.zimrc} ]]; then - command mv -f ${ztarget}{,.old} || return 1 - fi _zimfw_mv =( |