etc/zsh: source misc config if able
This commit is contained in:
parent
52af78fd1c
commit
f3fb9b7d4f
@ -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%/*}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user