fix alias loading order

This commit is contained in:
Saibotk 2022-04-17 21:25:21 +02:00
parent 1ba17411c2
commit a7a506003a
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -1,15 +1,6 @@
# Path to your dotfiles.
export DOTFILES=$HOME/.dotfiles
# Load extra files
source $DOTFILES/zsh/aliases.zsh
source $DOTFILES/zsh/path.zsh
# Load macos specific configs
if [[ $OSTYPE == 'darwin'* ]]; then
source $DOTFILES/macos/path.zsh
fi
# Load zsh-snap (znap) plugin manager
zstyle ':znap:*' repos-dir ~/.znap
source ~/.znap/znap/znap.zsh
@ -38,6 +29,23 @@ znap source unixorn/fzf-zsh-plugin
# Extra init code needed for zcolors.
znap eval zcolors "zcolors ${(q)LS_COLORS}"
# Load extra files
source $DOTFILES/zsh/path.zsh
# Load macos specific configs
if [[ $OSTYPE == 'darwin'* ]]; then
source $DOTFILES/macos/path.zsh
fi
# Load aliases
source $DOTFILES/zsh/aliases.zsh
# localcommands
if [ -f $DOTFILES/zsh/localcommands ]
then
source $DOTFILES/zsh/localcommands
fi
# ZSH prompt
if _has starship;
then
@ -46,9 +54,3 @@ else
echo "You should try installing the starship prompt 🚀"
znap prompt ohmyzsh/ohmyzsh robbyrussell
fi
# localcommands
if [ -f $DOTFILES/zsh/localcommands ]
then
source $DOTFILES/zsh/localcommands
fi