2024-08-24 12:09:27 -07:00
|
|
|
# Zsh options for all users
|
|
|
|
|
|
|
|
# enable extended globbing
|
|
|
|
setopt extended_glob
|
|
|
|
|
2024-09-23 17:47:05 -07:00
|
|
|
# Autoload dotfiles
|
2024-08-24 12:09:27 -07:00
|
|
|
for dotfile in "$ZDOTDIR"/*(D); do
|
|
|
|
source $dotfile
|
|
|
|
done
|
|
|
|
|
2024-09-23 17:47:05 -07:00
|
|
|
misc_files=(
|
|
|
|
/etc/zsh_command_not_found
|
|
|
|
)
|
|
|
|
for file in ${misc_files[@]}; do
|
|
|
|
[[ -r "${file}" ]] && source "${file}"
|
|
|
|
done
|
|
|
|
|
2024-08-24 12:09:27 -07:00
|
|
|
# Check history file
|
|
|
|
if [[ ! -f "${HISTFILE}" ]]; then
|
|
|
|
mkdir -p "${HISTFILE%/*}"
|
|
|
|
touch "${HISTFILE}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# vim-like keybindings
|
|
|
|
bindkey -v
|