-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new file: null.plugin.zsh
- Loading branch information
0 parents
commit 8d2ea38
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |