Skip to content

Commit

Permalink
new file: docs/README.md
Browse files Browse the repository at this point in the history
	new file:   null.plugin.zsh
  • Loading branch information
ss-o committed Dec 13, 2021
0 parents commit 8d2ea38
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# `NULL`

An empty repository to aid ZI atclone'' hook.

Use case example:

```
# The invocation uses https://github.com/z-shell/null repo as a placeholder
# for the atclone'' and atpull'' hooks
zi ice as"program" pick"$ZPFX/sdkman/bin/sdk" id-as'sdkman' run-atpull \
atclone"wget https://get.sdkman.io -O scr.sh; SDKMAN_DIR=$ZPFX/sdkman bash scr.sh" \
atpull"SDKMAN_DIR=$ZPFX/sdkman sdk selfupdate" \
atinit"export SDKMAN_DIR=$ZPFX/sdkman; source $ZPFX/sdkman/bin/sdkman-init.sh"
zi light z-shell/null
```
3 changes: 3 additions & 0 deletions null.plugin.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
0="${${(M)0:#/*}:-$PWD/$0}"
true

0 comments on commit 8d2ea38

Please sign in to comment.