From 68a164467deacbb8fb71caaeede82bfd9b624078 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 11 Oct 2022 21:42:55 -0400 Subject: [PATCH] Load the ansible_deploy zshrc files. --- ansible/roles/zsh/files/zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ansible/roles/zsh/files/zshrc b/ansible/roles/zsh/files/zshrc index c3675b0..74b5b22 100644 --- a/ansible/roles/zsh/files/zshrc +++ b/ansible/roles/zsh/files/zshrc @@ -38,3 +38,10 @@ autoload -Uz add-zsh-hook source $HOME/.ansible_deploy/zsh-histdb/histdb-interactive.zsh bindkey '^r' _histdb-isearch + +# TODO: Consider moving to /etc/profile.d +while read file; do + if [ -e "$file" ]; then + source "$file" + fi +done <<<"$(find $HOME/.ansible_deploy/zshrc -maxdepth 1 -type f -name '*.zsh' -print)"