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