-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
279 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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*.zwc | ||
*.zwc.old | ||
.cache/ | ||
!/tests/**/.cache/ | ||
.tmp/ | ||
.plugins/ | ||
.todo/ | ||
|
Empty file.
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,2 @@ | ||
echo "sourcing foo/bar..." | ||
plugins=($plugins foo/bar) |
Empty file.
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,2 @@ | ||
echo "sourcing foo/baz..." | ||
plugins=($plugins foo/baz) |
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,2 @@ | ||
#!/bin/zsh | ||
echo _baz completion |
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,5 @@ | ||
#!/bin/zsh | ||
function baz { | ||
echo baz function | ||
} | ||
baz "$@" |
Empty file.
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,2 @@ | ||
echo "sourcing foo/qux..." | ||
plugins=($plugins foo/qux) |
Empty file.
6 changes: 6 additions & 0 deletions
6
tests/tmp_home/.cache/antidote/getantidote/zsh-defer/zsh-defer.plugin.zsh
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,6 @@ | ||
# fake foo/bar | ||
echo "sourcing romkatv/zsh-defer..." | ||
plugins=($plugins romkatv/zsh-defer) | ||
function zsh-defer { | ||
$@ | ||
} |
Empty file.
2 changes: 2 additions & 0 deletions
2
tests/tmp_home/.cache/antidote/ohmy/ohmy/custom/themes/pretty.zsh-theme
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,2 @@ | ||
echo "sourcing pretty.zsh-theme..." | ||
themes=($themes ohmy:pretty) |
2 changes: 2 additions & 0 deletions
2
tests/tmp_home/.cache/antidote/ohmy/ohmy/custom/themes/ugly.zsh-theme
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,2 @@ | ||
echo "sourcing ugly.zsh-theme..." | ||
themes=($themes ohmy:ugly) |
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,2 @@ | ||
echo "sourcing ohmy/lib/lib1.zsh..." | ||
libs=($libs ohmy:lib1) |
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,2 @@ | ||
echo "sourcing ohmy/lib/lib2.zsh..." | ||
libs=($libs ohmy:lib2) |
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,2 @@ | ||
echo "sourcing ohmy/lib/lib3.zsh..." | ||
libs=($libs ohmy:lib2) |
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,2 @@ | ||
echo "sourcing oh-my.sh..." | ||
plugins=($plugins ohmy/ohmy) |
1 change: 1 addition & 0 deletions
1
tests/tmp_home/.cache/antidote/ohmy/ohmy/plugins/docker/_docker
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 @@ | ||
#compdef |
2 changes: 2 additions & 0 deletions
2
tests/tmp_home/.cache/antidote/ohmy/ohmy/plugins/docker/docker.plugin.zsh
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,2 @@ | ||
echo "sourcing docker.plugin.zsh..." | ||
plugins+=(ohmy:docker) |
2 changes: 2 additions & 0 deletions
2
tests/tmp_home/.cache/antidote/ohmy/ohmy/plugins/extract/extract.plugin.zsh
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,2 @@ | ||
echo "sourcing extract.plugin.zsh..." | ||
plugins+=(ohmy:extract) |
5 changes: 5 additions & 0 deletions
5
tests/tmp_home/.cache/antidote/ohmy/ohmy/plugins/macos/functions/macos_func
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,5 @@ | ||
#!/bin/zsh | ||
function macos_func { | ||
echo macos_func "$@" | ||
} | ||
macos_func "$@" |
2 changes: 2 additions & 0 deletions
2
tests/tmp_home/.cache/antidote/ohmy/ohmy/plugins/macos/macos.plugin.zsh
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,2 @@ | ||
echo "sourcing macos.plugin.zsh..." | ||
plugins+=(ohmy:macos) |
2 changes: 2 additions & 0 deletions
2
tests/tmp_home/.cache/antidote/ohmy/ohmy/plugins/magic-enter/magic-enter.plugin.zsh
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,2 @@ | ||
echo "sourcing magic-enter.plugin.zsh..." | ||
plugins+=(ohmy:magic-enter) |
2 changes: 2 additions & 0 deletions
2
tests/tmp_home/.cache/antidote/ohmy/ohmy/themes/pretty.zsh-theme
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,2 @@ | ||
echo "sourcing pretty.zsh-theme..." | ||
themes=($themes ohmy:pretty) |
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,30 @@ | ||
# local plugins | ||
~/foo/bar | ||
$ZDOTDIR/foo/bar | ||
$ZDOTDIR/foo/bar path:baz | ||
|
||
# repo plugins | ||
foo/bar | ||
git@github.com:baz/qux.git # trailing comments | ||
|
||
# kind:clone | ||
getantidote/zsh-defer kind:clone # more trailing comments | ||
|
||
# kind:zsh | ||
foo/bar kind:zsh | ||
|
||
# kind:fpath | ||
foo/bar kind:fpath | ||
|
||
# kind:path | ||
foo/bar kind:path | ||
|
||
# subpath plugins | ||
ohmy/ohmy path:lib | ||
ohmy/ohmy path:plugins/extract | ||
|
||
# deferred | ||
ohmy/ohmy path:plugins/magic-enter kind:defer | ||
|
||
# theme | ||
ohmy/ohmy path:custom/themes/pretty.zsh-theme |
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,2 @@ | ||
echo "sourcing custom lib1.zsh..." | ||
libs=($libs custom:lib1) |
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,2 @@ | ||
echo "sourcing custom lib2.zsh..." | ||
libs=($libs custom:lib2) |
187 changes: 187 additions & 0 deletions
187
tests/tmp_home/.zsh/custom/plugins/grizwold/grizwold.plugin.zsh
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,187 @@ | ||
() { | ||
setopt interactivecomments | ||
typeset -ga grizwold_zopts=( | ||
noaliases | ||
aliasfuncdef | ||
allexport | ||
noalwayslastprompt | ||
alwaystoend | ||
appendcreate | ||
noappendhistory | ||
autocd | ||
autocontinue | ||
noautolist | ||
noautomenu | ||
autonamedirs | ||
noautoparamkeys | ||
noautoparamslash | ||
autopushd | ||
noautoremoveslash | ||
autoresume | ||
nobadpattern | ||
nobanghist | ||
nobareglobqual | ||
bashautolist | ||
bashrematch | ||
nobeep | ||
nobgnice | ||
braceccl | ||
bsdecho | ||
nocaseglob | ||
nocasematch | ||
cbases | ||
cdablevars | ||
cdsilent | ||
chasedots | ||
chaselinks | ||
nocheckjobs | ||
nocheckrunningjobs | ||
# noclobber | ||
combiningchars | ||
completealiases | ||
completeinword | ||
continueonerror | ||
correct | ||
correctall | ||
cprecedences | ||
cshjunkiehistory | ||
cshjunkieloops | ||
cshjunkiequotes | ||
cshnullcmd | ||
cshnullglob | ||
nodebugbeforecmd | ||
dvorak | ||
emacs | ||
noequals | ||
# errexit | ||
# errreturn | ||
noevallineno | ||
# noexec | ||
extendedglob | ||
extendedhistory | ||
noflowcontrol | ||
# forcefloat | ||
nofunctionargzero | ||
noglob | ||
noglobalexport | ||
# noglobalrcs | ||
globassign | ||
globcomplete | ||
globdots | ||
globstarshort | ||
globsubst | ||
nohashcmds | ||
nohashdirs | ||
hashexecutablesonly | ||
nohashlistall | ||
histallowclobber | ||
nohistbeep | ||
histexpiredupsfirst | ||
histfcntllock | ||
histfindnodups | ||
histignorealldups | ||
histignoredups | ||
histignorespace | ||
histlexwords | ||
histnofunctions | ||
histnostore | ||
histreduceblanks | ||
nohistsavebycopy | ||
histsavenodups | ||
histsubstpattern | ||
histverify | ||
nohup | ||
ignorebraces | ||
ignoreclosebraces | ||
ignoreeof | ||
incappendhistory | ||
incappendhistorytime | ||
# interactive | ||
interactivecomments | ||
# ksharrays | ||
kshautoload | ||
kshglob | ||
# kshoptionprint | ||
kshtypeset | ||
kshzerosubscript | ||
nolistambiguous | ||
nolistbeep | ||
listpacked | ||
listrowsfirst | ||
nolisttypes | ||
localloops | ||
# localoptions | ||
localpatterns | ||
localtraps | ||
# login | ||
longlistjobs | ||
magicequalsubst | ||
mailwarning | ||
markdirs | ||
menucomplete | ||
# monitor | ||
nomultibyte | ||
nomultifuncdef | ||
nomultios | ||
nonomatch | ||
nonotify | ||
nullglob | ||
numericglobsort | ||
octalzeroes | ||
overstrike | ||
pathdirs | ||
pathscript | ||
pipefail | ||
posixaliases | ||
posixargzero | ||
posixbuiltins | ||
posixcd | ||
posixidentifiers | ||
posixjobs | ||
# posixstrings | ||
posixtraps | ||
printeightbit | ||
printexitvalue | ||
# privileged | ||
promptbang | ||
nopromptcr | ||
# nopromptpercent | ||
nopromptsp | ||
promptsubst | ||
pushdignoredups | ||
pushdminus | ||
pushdsilent | ||
pushdtohome | ||
rcexpandparam | ||
rcquotes | ||
# norcs | ||
recexact | ||
rematchpcre | ||
# restricted | ||
rmstarsilent | ||
rmstarwait | ||
sharehistory | ||
shfileexpansion | ||
shglob | ||
# shinstdin | ||
shnullcmd | ||
shoptionletters | ||
noshortloops | ||
shwordsplit | ||
# singlecommand | ||
singlelinezle | ||
# sourcetrace | ||
sunkeyboardhack | ||
transientrprompt | ||
trapsasync | ||
typesetsilent | ||
nounset | ||
# verbose | ||
# vi | ||
warncreateglobal | ||
warnnestedvar | ||
# xtrace | ||
# zle | ||
) | ||
setopt $grizwold_zopts | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/tmp_home/.zsh/custom/plugins/myplugin/myplugin.plugin.zsh
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 @@ | ||
# fake foo/bar | ||
echo "sourcing myplugin..." | ||
plugins+=(custom:myplugin) |
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,2 @@ | ||
echo "sourcing mytheme..." | ||
plugins+=(custom:mytheme) |
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,5 @@ | ||
#!/bin/zsh | ||
function myfunc { | ||
echo myfunc "$@" | ||
} | ||
myfunc "$@" |