Skip to content

Commit

Permalink
Use Antidote's new OMZ compatibility plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Jun 27, 2024
1 parent c132779 commit ef34346
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions dotfiles/.zsh_plugins.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Initialize Zsh completions (must be first)
zshzoo/completion
# Antidote's OMZ compatibility plugin
getantidote/use-omz

# Standard plugins
djui/alias-tips
Expand Down
10 changes: 1 addition & 9 deletions dotfiles/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,8 @@ export PATH="$HOMEBREW_PREFIX/opt/gnu-tar/libexec/gnubin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/grep/libexec/gnubin:$PATH"
export PATH="$PATH:/opt/X11/bin"

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

# Set variables required by Oh My Zsh plugins
ZSH=$(antidote path ohmyzsh/ohmyzsh)
export ZSH
export ZSH_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/oh-my-zsh"
[[ -d $ZSH_CACHE_DIR ]] || mkdir -p "$ZSH_CACHE_DIR"

# Load Zsh plugins with Antidote
antidote load

# Source additional files last to override any plugins
Expand Down

0 comments on commit ef34346

Please sign in to comment.