Skip to content

Commit

Permalink
Improve .zshrc loading order
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Jul 30, 2023
1 parent e449aa8 commit 15dc328
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dotfiles/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ export PATH="$PATH:/opt/X11/bin"

# ==================== SOURCING SCRIPTS ==================== #

# Source .aliases and .extra if they exist
[[ -f $HOME/.aliases ]] && source "$HOME/.aliases"
[[ -f $HOME/.extra ]] && source "$HOME/.extra"

# Source 1Password Shell Plugins
# https://developer.1password.com/docs/cli/shell-plugins/
source "$HOME/.config/op/plugins.sh"

# Source Antidote
source "$HOMEBREW_PREFIX/opt/antidote/share/antidote/antidote.zsh"

Expand All @@ -43,19 +51,11 @@ export ZSH
export ZSH_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/oh-my-zsh"
[[ -d $ZSH_CACHE_DIR ]] || mkdir -p "$ZSH_CACHE_DIR"

# Load Antidote plugins
# Load Zsh plugins with Antidote
antidote load

# Source 1Password Shell Plugins
# https://developer.1password.com/docs/cli/shell-plugins/
source "$HOME/.config/op/plugins.sh"

# Source rtx
eval "$(rtx activate zsh)"

# Source Starship
eval "$(starship init zsh)"

# Source .aliases and .extra if they exist
[[ -f $HOME/.aliases ]] && source "$HOME/.aliases"
[[ -f $HOME/.extra ]] && source "$HOME/.extra"

0 comments on commit 15dc328

Please sign in to comment.