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%/*}"