You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tip: If you don't want to clutter up your config with .zsh_plugins.txt and .zsh_plugins.zsh and just want to drive everything from your .zshrc file, you can use a HEREDOC to make your static bundle file, and tuck it away somewhere you don't have to see it, like in ~/.cache:
# .zshrc # Set variables so we can compare the timestamp of this file with an antidote static file# and keep the static file fresh every time this file (presumably .zshrc) changes
this_file="${${(%):-%N}:A}"# presumably, your .zshrc
plugins_file="$HOME/.cache/antidote/zsh_plugins.zsh"# Tuck this file where ever you want# Generate a new static bundle file whenever this file is updated (ie: newer than the static file).if [[ !"$plugins_file"-nt"$this_file" ]];then# Initialize antidote and ensure there's a place to tuck away our plugins filesource /path/to/where/ever/you/put/antidote.zsh
mkdir -p "${plugins_file:h}"# Use a HEREDOC string to manage your plugins, and bundle it to a cached static file
antidote bundle <<-EOBUNDLES >| "$plugins_file" # https://github.com/zsh-users/zsh-syntax-highlighting zsh-users/zsh-syntax-highlighting # https://github.com/zsh-users/zsh-autosuggestions zsh-users/zsh-autosuggestionsEOBUNDLESfi# Source your wicked fast antidote static plugins filesource"$plugins_file"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Tip: If you don't want to clutter up your config with .zsh_plugins.txt and .zsh_plugins.zsh and just want to drive everything from your
.zshrc
file, you can use a HEREDOC to make your static bundle file, and tuck it away somewhere you don't have to see it, like in~/.cache
:Beta Was this translation helpful? Give feedback.
All reactions