dotfiles/.bashrc

15 lines
466 B
Bash
Raw Normal View History

2024-05-17 20:46:22 -04:00
shopt -s autocd
shopt -s nocaseglob
shopt -s histverify
PS1='\[\033[34m\]\w $(if [ "$?" -eq 0 ]; then printf "\033[32m"; else printf "\033[31m"; fi)\$ \[\033[0m\]'
[ -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
. "$func"
done
unset func
fi