summaryrefslogtreecommitdiff
path: root/dot_config/zsh
diff options
context:
space:
mode:
authorChloƩ Vulquin <code@toast.bunkerlabs.net>2026-01-23 00:33:10 +0100
committerChloƩ Vulquin <code@toast.bunkerlabs.net>2026-01-23 00:33:10 +0100
commit7b5ac3f10d07205f7eeabd91936b94f02fa54519 (patch)
treebccea2a62907a72eab0eed23845ba972425dbf81 /dot_config/zsh
parentzsh: oops, symlinks! (diff)
zsh: add `:` to xsource
Otherwise, failure to find xsource() files causes a return of 1 at the end of zlogin (or similar). The entire point of xsource is to "safely" source files that may not be there, so this seems reasonable.
Diffstat (limited to 'dot_config/zsh')
-rw-r--r--dot_config/zsh/zshenv1
1 files changed, 1 insertions, 0 deletions
diff --git a/dot_config/zsh/zshenv b/dot_config/zsh/zshenv
index 7f08cf7..2818dfd 100644
--- a/dot_config/zsh/zshenv
+++ b/dot_config/zsh/zshenv
@@ -7,6 +7,7 @@ xsource() {
for i; do
[ -r "$i" ] && source "$i"
done
+ :
}
xzsource() {
xsource "${@/#/$ZDOTDIR/}"