diff options
| author | 2026-01-23 00:33:10 +0100 | |
|---|---|---|
| committer | 2026-01-23 00:33:10 +0100 | |
| commit | 7b5ac3f10d07205f7eeabd91936b94f02fa54519 (patch) | |
| tree | bccea2a62907a72eab0eed23845ba972425dbf81 /dot_config | |
| parent | zsh: 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')
| -rw-r--r-- | dot_config/zsh/zshenv | 1 |
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/}" |
