dotfiles/zsh/.zshrc

29 lines
683 B
Bash
Raw Normal View History

2024-05-17 20:46:22 -04:00
setopt autocd
setopt nocaseglob
setopt histverify
setopt correct
setopt histreduceblanks
2024-05-26 09:45:18 -04:00
HISTSIZE=999999999
SAVEHIST=$HISTSIZE
HISTFILE="$XDG_CACHE_HOME/zsh/history"
2024-05-17 20:46:22 -04:00
PS1='%F{blue}%~ %(?.%F{green}.%F{red})%#%f '
2024-05-26 09:45:18 -04:00
[ -f "$XDG_CONFIG_HOME/shell/aliases" ] && . "$XDG_CONFIG_HOME/shell/aliases"
[ -f "$XDG_CONFIG_HOME/shell/shortcuts" ] && . "$XDG_CONFIG_HOME/shell/shortcuts"
2024-05-17 20:46:22 -04:00
2024-05-26 09:45:18 -04:00
if [ -d "$XDG_CONFIG_HOME/shell/functions" ]; then
for func in "$XDG_CONFIG_HOME"/shell/functions/*; do
2024-05-17 20:46:22 -04:00
. "$func"
done
unset func
fi
2024-05-26 09:45:18 -04:00
if [ -d "$XDG_DATA_HOME/zsh/plugins" ]; then
for plug in "$XDG_DATA_HOME"/zsh/plugins/*/*.plugin.zsh; do
2024-05-17 20:46:22 -04:00
. "$plug"
done
unset plug
fi