summaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2024-02-27 21:47:56 -0500
committerJesse Luehrs <doy@tozt.net>2024-02-27 21:47:56 -0500
commit0179eebc614a5668048b510cb7a0776354c16dc3 (patch)
tree37b6248fe5785d8abb0a00f7f6a778c81e1707aa /zsh
parenta8b20e6efbae662ae6d770417814a431755d1f68 (diff)
downloadconf-0179eebc614a5668048b510cb7a0776354c16dc3.tar.gz
conf-0179eebc614a5668048b510cb7a0776354c16dc3.zip
make it possible to load shell config fragments
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc10
1 files changed, 4 insertions, 6 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index d6a4292..c60e8d7 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -6,13 +6,11 @@ test -d "$HOME/.cargo/bin" && export PATH="$HOME/.cargo/bin:$PATH"
# tends to hard-set $PATH and such
PATH="${HOME}/.bin/local:${HOME}/.bin/$(hostname):${HOME}/.bin:$PATH"
export PATH
-# shellcheck source=sh/.config/sh/env
-[ -f "$HOME/.config/sh/env" ] && source "$HOME/.config/sh/env"
-# }}}
-# aliases {{{
-# shellcheck source=sh/.config/sh/aliases
-[ -f "$HOME/.config/sh/aliases" ] && source "$HOME/.config/sh/aliases"
# }}}
+for file in ~/.config/sh/rc.d/*; do
+ # shellcheck disable=SC1090
+ source "$file"
+done
# completion {{{
# shellcheck disable=SC2206
fpath=( \