From f3fb9b7d4f46bb1e79fb95266c726c69e1df4222 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Mon, 23 Sep 2024 17:47:05 -0700 Subject: [PATCH] etc/zsh: source misc config if able --- etc/zsh/zshrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 1aca73c..806cae8 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3,11 +3,18 @@ # enable extended globbing setopt extended_glob -# autoload misc files +# Autoload dotfiles for dotfile in "$ZDOTDIR"/*(D); do source $dotfile done +misc_files=( + /etc/zsh_command_not_found +) +for file in ${misc_files[@]}; do + [[ -r "${file}" ]] && source "${file}" +done + # Check history file if [[ ! -f "${HISTFILE}" ]]; then mkdir -p "${HISTFILE%/*}"