etc/zsh: source misc config if able

This commit is contained in:
Eric Torres 2024-09-23 17:47:05 -07:00
parent 52af78fd1c
commit f3fb9b7d4f

View File

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