add script to source extra zsh configs

This commit is contained in:
Joel Mathew Thomas
2024-12-27 22:23:30 +05:30
parent b800b2840d
commit 956d3ed0dc
+10
View File
@@ -81,3 +81,13 @@ export MAKEFLAGS="-j$(( $(nproc) + 1 )) -l$(nproc)"
# Shell integrations # Shell integrations
eval "$(fzf --zsh)" eval "$(fzf --zsh)"
eval "$(zoxide init --cmd cd zsh)" eval "$(zoxide init --cmd cd zsh)"
# Source all configuration files from ~/.zshrc.d
ZSHRC_D_DIR="$HOME/.zshrc.d"
if [ -d "$ZSHRC_D_DIR" ]; then
for config in "$ZSHRC_D_DIR"/*; do
[ -r "$config" ] && source "$config"
done
fi