initial commit
This commit is contained in:
39
bash/.bash_profile
Normal file
39
bash/.bash_profile
Normal file
@@ -0,0 +1,39 @@
|
||||
# .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;
|
||||
Reference in New Issue
Block a user