Reorganise bash files

This commit is contained in:
2021-03-23 17:33:12 +00:00
parent 8953f73b6d
commit d58e38cbc8
5 changed files with 65 additions and 54 deletions

View File

@@ -5,16 +5,32 @@ if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
export PATH
# Source functions, if it exists
if [ -e $HOME/.bash/functions.bash ]; then
if [ -f $HOME/.bash/functions.bash ]; then
source $HOME/.bash/functions.bash
fi
# Source aliases, if it exists
if [ -e $$HOME/.bash/aliases.bash ]; then
if [ -f $HOME/.bash/aliases.bash ]; then
source $HOME/.bash/aliases.bash
fi
# User specific environment
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
export PATH
# Source exports, if it exists
if [ -f $HOME/.bash/exports.bash ]; then
source $HOME/.bash/exports.bash
fi
# Source completions, if it exists
if [ -f $HOME/.bash/exports.bash ]; then
source $HOME/.bash/completions.bash
fi
# Load iTerm2 integration, for all hosts
source ~/.bash/iterm2_integration.bash
# Homebrew
[ -d /opt/homebrew ]; eval $(/opt/homebrew/bin/brew shellenv)