mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 09:42:27 +00:00
Switch to a common shell settings between bash and zsh
This commit is contained in:
29
bash/.bashrc
29
bash/.bashrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user