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

@@ -1,19 +1,10 @@
# Source exports, if it exists
if [ -f $HOME/.config/zsh/exports.zsh ]; then
source $HOME/.config/zsh/exports.zsh
fi
# Source functions, if it exists
if [ -f $HOME/.config/zsh/functions.zsh ]; then
source $HOME/.config/zsh/functions.zsh
fi
# Source shell common
for f in ~/.config/shell-common/*.sh; do
source $f;
done
# Source aliases, if it exists
if [ -f $HOME/.config/zsh/aliases.zsh ]; then
source $HOME/.config/zsh/aliases.zsh
fi
# Source completions, if it exists
if [ -f $HOME/.config/zsh/completions.zsh ]; then
source $HOME/.config/zsh/completions.zsh
fi
# Source zsh specific files
for f in ~/.config/zsh/*.zsh; do
source $f;
done