summarylogtreecommitdiffstats
path: root/zimfw.zsh.patch
diff options
context:
space:
mode:
authorMateusz Galazyn2021-08-10 08:45:04 +0200
committerMateusz Galazyn2021-08-10 08:45:04 +0200
commit83502769ba6287bf258064292a51d45a034aab67 (patch)
tree843130c16884e45f3872736a42b1591e4ff735ab /zimfw.zsh.patch
parentf3381814df9609a1ea3cf4f27f2026a221063c31 (diff)
downloadaur-83502769ba6287bf258064292a51d45a034aab67.tar.gz
Fix patch for zimfw.zsh (thanks Rhinoceros)
Diffstat (limited to 'zimfw.zsh.patch')
-rw-r--r--zimfw.zsh.patch19
1 files changed, 9 insertions, 10 deletions
diff --git a/zimfw.zsh.patch b/zimfw.zsh.patch
index 01ae6269c298..acf44a13c294 100644
--- a/zimfw.zsh.patch
+++ b/zimfw.zsh.patch
@@ -1,7 +1,7 @@
---- zimfw.zsh 2021-01-11 22:16:26.000000000 +0100
-+++ zimfw.zsh 2021-01-13 18:59:16.889418467 +0100
-@@ -52,16 +52,13 @@
-
+--- zimfw.zsh 2021-07-28 16:45:25.000000000 +1000
++++ zimfw.zsh 2021-07-28 16:45:25.000000000 +1000
+@@ -52,26 +52,19 @@
+
_zimfw_build_init() {
local -r ztarget=${ZIM_HOME}/init.zsh
- # Force update of init.zsh if it's older than .zimrc
@@ -16,12 +16,11 @@
) ${ztarget}
+ chmod -R u+rX,g+rX,o+rX "${ZIM_HOME}" &>/dev/null
}
-
+
_zimfw_build_login_init() {
-@@ -69,10 +66,6 @@
+ # 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
+ local -r zscriptglob=("${^zscriptdirs[@]}/(^*test*/)#*.zsh(|-theme)(N-.)") 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
- command mv -f ${ztarget}{,.old} || return 1
@@ -29,11 +28,11 @@
_zimfw_mv =(
print -Rn "() {
setopt LOCAL_OPTIONS CASE_GLOB EXTENDED_GLOB
-@@ -99,6 +92,7 @@
+@@ -98,6 +91,7 @@
} \"\${@}\"
"
) ${ztarget}
+ chmod -R u+rX,g+rX,o+rX "${ZIM_HOME}" &>/dev/null
}
-
+
_zimfw_build() {