Files
dotfiles/bash/.bash_profile
2026-04-06 19:41:06 -06:00

40 lines
943 B
Bash

# .bash_profile
# Adrian Abeyta <adrian@adrianabeyta.com>
# 2026.04.05
# don't do anything if not running interactively
case $- in
*i*) ;;
*) return;;
esac
# include user home bins if they exist
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi;
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi;
# load the dotfiles
for file in ~/.{env,path,functions,aliases,prompt}; do
[ -r "$file" ] && [ -f "$file" ] && \
source "$file";
done;
unset file;
# fun scripts
if is_true "${HAVE_FUN:-}"; then
source ~/.fun
fi
shopt -s nocaseglob; # case-insensitive globbing
shopt -s histappend; # append to bash history file
shopt -s cdspell; # autocorrect typos in path names when cd'ing
shopt -s checkwinsize # update col/line values on each command
# enable tab completion for 'g' by marking as alias for 'git'
if type _git &> /dev/null; then
complete -o default -o nospace -F _git g;
fi;