dotfiles/dot_bashrc

25 lines
498 B
Plaintext

# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# User specific aliases and functions
if [ -d "$HOME/.config/bash" ]; then
for rc in "$HOME/.config/bash/*"; do
if [ -f "$rc" ]; then
# shellcheck source=/dev/null
. "$rc"
fi
done
fi
unset rc
if which direnv > /dev/null 2>&1 ; then
eval "$(direnv hook bash)"
fi
if which zoxide > /dev/null 2>&1 ; then
eval "$(zoxide init bash)"
# shellcheck disable=SC2139
alias z="$(which zoxide)"
fi