summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2024-04-20 10:32:39 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2024-04-20 10:32:39 +0100
commit0a45a3af4918b36043f04ee4ab2d3379fa71c504 (patch)
tree803e415472f0ce1b35040cacabfbf0b3f7957ca7
parent2dfff3413e3b11a486c32d237c5f3a377d55b707 (diff)
zsh: Source files in ‘dotfiles-local’ if available
-rw-r--r--zsh/env2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/env b/zsh/env
index 91c2e69..f6df33a 100644
--- a/zsh/env
+++ b/zsh/env
@@ -6,7 +6,7 @@ dotfiles_root() {
source_if_exists() {
local prefix file
- for prefix in ${UNAME} ${DOMAIN} ${HOST_SHORT} ${HOST}; do
+ for prefix in ${UNAME} ${DOMAIN} ${HOST_SHORT} ${HOST} local; do
file=$(dotfiles_root)/dotfiles-${prefix}/$1
[[ -f ${file} ]] && . ${file}
done