dotfiles/home/bash/.bashrc

30 lines
547 B
Bash
Raw Normal View History

2024-12-29 21:20:56 +00:00
# shellcheck shell=bash
2025-03-25 17:48:52 +00:00
shopt -s autocd globstar nullglob extglob checkwinsize
2024-12-29 21:20:56 +00:00
for rc in /etc/bashrc /etc/*.bashrc; do
if [[ -e $rc ]]; then
# shellcheck disable=SC1090
source "$rc"
fi
done
2025-03-25 17:48:52 +00:00
if hash direnv 2>/dev/null; then
eval "$(direnv hook bash)"
fi
if hash starship 2>/dev/null; then
eval "$(starship init bash)"
fi
if hash nix 2>/dev/null; then
export PATH=${XDG_STATE_HOME:-~/.local/state}/nix/profile/bin:$PATH
fi
if hash hx 2>/dev/null; then
export EDITOR=hx
export VISUAL=hx
fi
export PATH=~/.local/bin:$PATH