dotfiles/zsh/.zshrc

27 lines
735 B
Bash
Raw Normal View History

2024-05-17 20:46:22 -04:00
setopt autocd
setopt nocaseglob
setopt histverify
setopt correct
setopt histreduceblanks
PS1='%F{blue}%~ %(?.%F{green}.%F{red})%#%f '
2024-05-19 02:23:03 -04:00
# shellcheck disable=SC1091
2024-05-17 20:46:22 -04:00
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliases" ] && . "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliases"
if [ -d "${XDG_CONFIG_HOME:-$HOME/.config}/shell/functions" ]; then
for func in "${XDG_CONFIG_HOME:-$HOME/.config}"/shell/functions/*; do
2024-05-19 02:23:03 -04:00
# shellcheck disable=SC1090
2024-05-17 20:46:22 -04:00
. "$func"
done
unset func
fi
if [ -d "${XDG_DATA_HOME:-$HOME/.local/share}/zsh/plugins" ]; then
for plug in "${XDG_DATA_HOME:-$HOME/.local/share}"/zsh/plugins/*/*.plugin.zsh; do
# shellcheck disable=SC1090
. "$plug"
done
unset plug
fi