etc/zsh: source misc config if able
This commit is contained in:
parent
52af78fd1c
commit
f3fb9b7d4f
@ -3,11 +3,18 @@
|
|||||||
# enable extended globbing
|
# enable extended globbing
|
||||||
setopt extended_glob
|
setopt extended_glob
|
||||||
|
|
||||||
# autoload misc files
|
# Autoload dotfiles
|
||||||
for dotfile in "$ZDOTDIR"/*(D); do
|
for dotfile in "$ZDOTDIR"/*(D); do
|
||||||
source $dotfile
|
source $dotfile
|
||||||
done
|
done
|
||||||
|
|
||||||
|
misc_files=(
|
||||||
|
/etc/zsh_command_not_found
|
||||||
|
)
|
||||||
|
for file in ${misc_files[@]}; do
|
||||||
|
[[ -r "${file}" ]] && source "${file}"
|
||||||
|
done
|
||||||
|
|
||||||
# Check history file
|
# Check history file
|
||||||
if [[ ! -f "${HISTFILE}" ]]; then
|
if [[ ! -f "${HISTFILE}" ]]; then
|
||||||
mkdir -p "${HISTFILE%/*}"
|
mkdir -p "${HISTFILE%/*}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user