diff --git a/_sections/06-options.md b/_sections/06-options.md index a4384f9..84ddd09 100644 --- a/_sections/06-options.md +++ b/_sections/06-options.md @@ -84,7 +84,7 @@ zsh-defer source /Users/matt/Library/Caches/antidote/https-COLON--SLASH--SLASH-g ## Branch -You can also specify a branch to download, if you don't want the `main` branch for +You can also specify a branch to download, if you don't want the default branch for whatever reason. Example: @@ -116,6 +116,26 @@ fpath+=( /Users/matt/Library/Caches/antidote/https-COLON--SLASH--SLASH-github.co source /Users/matt/Library/Caches/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/plugins/magic-enter/magic-enter.plugin.zsh ``` +## Pre/Post + +You may specify a function that runs before/after loading the plugin. They can +be used to configure the plugin. + +Example: + +```console +$ antidote bundle zsh-users/zsh-autosuggestions post:adjust_autosuggestions_style +``` + +with `adjust_autosuggestions_style` being a function defined before `antidote +load` is called: + +```console +function adjust_autosuggestions_style () { + ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=244' +} +``` + ## Friendly Names You can also change how Antidote names the plugin directories by adding this to your