Skip to content

Commit f12a3ea

Browse files
committed
zsh: cleanup antidote
1 parent df97c9d commit f12a3ea

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

.config/zsh/.zshrc

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,11 @@ zstyle ':antidote:bundle' use-friendly-names 'yes'
1010

1111
bindkey -e
1212

13+
# source antidote
1314
source $XDG_DATA_HOME/antidote/antidote.zsh
1415

15-
# Set the name of the static .zsh plugins file antidote will generate.
16-
zsh_plugins=${ZDOTDIR:-~}/.zsh_plugins.zsh
17-
18-
# Ensure you have a .zsh_plugins.txt file where you can add plugins.
19-
[[ -f ${zsh_plugins:r}.txt ]] || touch ${zsh_plugins:r}.txt
20-
21-
# Lazy-load antidote.
22-
fpath+=($XDG_DATA_HOME/antidote)
23-
autoload -Uz $fpath[-1]/antidote
24-
25-
# Generate static file in a subshell when .zsh_plugins.txt is updated.
26-
if [[ ! $zsh_plugins -nt ${zsh_plugins:r}.txt ]]; then
27-
(antidote bundle <${zsh_plugins:r}.txt >|$zsh_plugins)
28-
fi
29-
30-
# Source your static plugins file.
31-
source $zsh_plugins
16+
# initialize plugins statically with ${ZDOTDIR:-$HOME}/.zsh_plugins.txt
17+
antidote load
3218

3319
_anyframe-config () {
3420
zle -N _anyframe-gitmoji

0 commit comments

Comments
 (0)