From 916bb6a0cfd4a726ae934362f687e9ef27bf2aa9 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Tue, 5 Jun 2018 14:05:39 -0400 Subject: [PATCH] Updated loadable modules for local zsh/dotbot --- install | 6 ++++++ zshrc | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/install b/install index b1baa33..1d010c1 100755 --- a/install +++ b/install @@ -12,3 +12,9 @@ cd "${BASEDIR}" git submodule update --init --recursive "${DOTBOT_DIR}" "${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}" + +# Run local dotbot if any +if [[ -r "${HOME}/.local/dotfiles/local.conf.yaml" ]]; then + "${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${HOME}/.local/dotfiles" -c "local.conf.yaml" "${@}" +fi + diff --git a/zshrc b/zshrc index f90f27c..a1bc218 100644 --- a/zshrc +++ b/zshrc @@ -38,3 +38,8 @@ fi # Disable Ctrl+S Scroll-Locking stty -ixon +# Include local functions/aliases/environments: +while read file; do + source "$file" +done < <(find "${HOME}/.local/dotfiles/" -type f -name '*.zsh') +