removed windows and linux split subdir
This commit is contained in:
parent
83dda10fa8
commit
065b982734
280 changed files with 9053 additions and 426 deletions
54
.antidote/tests/test_cmd_init.md
Normal file
54
.antidote/tests/test_cmd_init.md
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# antidote init tests
|
||||
|
||||
## Setup
|
||||
|
||||
```zsh
|
||||
% source ./tests/_setup.zsh
|
||||
% source ./antidote.zsh
|
||||
%
|
||||
```
|
||||
|
||||
## Init
|
||||
|
||||
```zsh
|
||||
% antidote init
|
||||
#!/usr/bin/env zsh
|
||||
function antidote {
|
||||
case "$1" in
|
||||
bundle)
|
||||
source <( antidote-main $@ ) || antidote-main $@
|
||||
;;
|
||||
*)
|
||||
antidote-main $@
|
||||
;;
|
||||
esac
|
||||
}
|
||||
%
|
||||
```
|
||||
|
||||
Load plugins dynamically
|
||||
|
||||
```zsh
|
||||
% source <(antidote init)
|
||||
% antidote bundle foo/bar
|
||||
sourcing foo/bar...
|
||||
% antidote bundle foo/baz autoload:functions
|
||||
sourcing foo/baz...
|
||||
% antidote bundle $ZDOTDIR/custom/lib
|
||||
sourcing custom lib1.zsh...
|
||||
sourcing custom lib2.zsh...
|
||||
% echo $#plugins
|
||||
2
|
||||
% echo $#libs
|
||||
2
|
||||
% echo $+functions[baz]
|
||||
1
|
||||
%
|
||||
```
|
||||
|
||||
## Teardown
|
||||
|
||||
```zsh
|
||||
% t_teardown
|
||||
%
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue