dotfiles/dot_bashrc

32 lines
647 B
Plaintext
Raw Normal View History

2021-04-12 21:56:06 -04:00
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi
if [ -d "/usr$HOME" ] ; then export HOME=/usr$HOME ; cd ; fi
2021-04-13 14:43:04 -04:00
for BASHRC in /etc/bashrc /etc/bash.bashrc /etc/bash/bashrc ; do
if [ -f "$BASHRC" ] ; then
. "$BASHRC"
2021-04-12 21:56:06 -04:00
fi
2021-04-13 14:43:04 -04:00
done
unset BASHRC
2021-04-12 21:56:06 -04:00
2021-04-13 14:43:04 -04:00
EDITOR=nvim; export EDITOR
2021-04-12 21:56:06 -04:00
2021-04-13 14:43:04 -04:00
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
2021-04-12 21:56:06 -04:00
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
2021-04-13 14:43:04 -04:00
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
2021-04-12 21:56:06 -04:00
fi
unset rc