Switch to a common shell settings between bash and zsh

This commit is contained in:
2021-03-24 18:06:42 +00:00
parent 1c49c7cecb
commit 7c210a2083
10 changed files with 58 additions and 196 deletions

View File

@@ -5,25 +5,12 @@ if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Source exports, if it exists
if [ -f $HOME/.config/bash/exports.bash ]; then
source $HOME/.config/bash/exports.bash
fi
# Source shell common
for f in ~/.config/shell-common/*.sh; do
source $f;
done
# Source functions, if it exists
if [ -f $HOME/.config/bash/functions.bash ]; then
source $HOME/.config/bash/functions.bash
fi
# Source aliases, if it exists
if [ -f $HOME/.config/bash/aliases.bash ]; then
source $HOME/.config/bash/aliases.bash
fi
# Source completions, if it exists
if [ -f $HOME/.config/bash/completions.bash ]; then
source $HOME/.config/bash/completions.bash
fi
# Homebrew
[ -d /opt/homebrew ] && eval $(/opt/homebrew/bin/brew shellenv)
# Source bash specific files
for f in ~/.config/bash/*.bash; do
source $f;
done