Skip to content

Commit

Permalink
Add test for replacing zsh-defer bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmc3 committed Jul 17, 2024
1 parent fd90f64 commit aa2c3f6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tests/test_alt_zsh_defer_bundle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# antidote test alternative zsh-defer repo

## Setup

```zsh
% source ./tests/_setup.zsh
% source ./antidote.zsh
%
```

## Customize zsh-defer

If the user forks zsh-defer, support setting a zstyle for an alternative repo location.

### General

```zsh
% zstyle ':antidote:bundle' use-friendly-names on
% zstyle ':antidote:defer' bundle 'getantidote/zsh-defer'
% antidote bundle 'zsh-users/zsh-autosuggestions kind:defer' 2>/dev/null | subenv ANTIDOTE_HOME
if ! (( $+functions[zsh-defer] )); then
fpath+=( $ANTIDOTE_HOME/getantidote/zsh-defer )
source $ANTIDOTE_HOME/getantidote/zsh-defer/zsh-defer.plugin.zsh
fi
fpath+=( $ANTIDOTE_HOME/zsh-users/zsh-autosuggestions )
zsh-defer source $ANTIDOTE_HOME/zsh-users/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
%
```

## Teardown

```zsh
% t_teardown
%
```

0 comments on commit aa2c3f6

Please sign in to comment.