Skip to content

Commit

Permalink
Merge pull request #13 from zdharma-continuum/feat/zsh-5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
pschmitt authored Jun 5, 2023
2 parents 399b3ef + 475a4cb commit e3e794b
Show file tree
Hide file tree
Showing 5 changed files with 354 additions and 222 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ https://zdharma-continuum.github.io/zinit/wiki/Zinit-Packages/
To create a new package named `foo`:

```zsh
./zinit-gen-pkg.sh create foo
./zinit-pkg-gen.sh create foo
```

This will create a directory named `foo` which contains:
Expand All @@ -25,7 +25,7 @@ This will create a directory named `foo` which contains:
To add another profile (as in `zinit pack"PROFILE" for PACKAGE`), for example `bar`:

```zsh
./zinit-gen-pkg.sh create foo bar
./zinit-pkg-gen.sh create foo bar
```

This will create a new file in your package directory: `bar.ices.zsh`.
Expand Down Expand Up @@ -61,23 +61,23 @@ To generate a `package.json` file for your package run:
pkg=null
profile=default

./zinit-gen-pkg.sh gen ${pkg} ${profile}
./zinit-pkg-gen.sh gen ${pkg} ${profile}
```

## 🐳 How do I run these?

There's a shorthand subcommand for running a `.ices.zsh` file locally, inside a container:

```zsh
./zinit-gen-pkg.sh run PACKAGE PROFILE
./zinit-pkg-gen.sh run PACKAGE PROFILE
```

Great, but I want to test my `package.json` directly!

Here you go:

```zsh
./zinit-gen-pkg.sh run --pack PACKAGE PROFILE
./zinit-pkg-gen.sh run --pack PACKAGE PROFILE
```

<!-- vim: set ft=markdown et ts=2 sw=2 tw=80 --!>
42 changes: 42 additions & 0 deletions zsh/5.9-tcsetpgrp.ices.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# zinit package for zsh [5.9-tcsetpgrp]
# Generated by zinit-pkg-gen.sh
# 2023-05-27T11:19:50+02:00
AUTHOR=''
DESCRIPTION='Zsh – the programmer'\''s shell'
LICENSE=''
MESSAGE=''
NAME='zsh'
PARAM_DEFAULT=''
REQUIREMENTS='cc;make;cp;rm'
URL='https://github.com/zsh-users/zsh'
VERSION='5.9.0'

zinit \
as'null' \
atclone'git checkout --quiet zsh-5.9;
./.preconfig;
m {nl}{hi}Building Zsh{…};
CPPFLAGS='\''-I/usr/include -I/usr/local/include'\'' CFLAGS='\''-g -O2 -Wall'\'' LDFLAGS='\''-L/usr/libs -L/usr/local/libs'\'' ./configure --with-tcsetpgrp --prefix="$ZPFX" >/dev/null &&
{ type yodl &>/dev/null || { m -u2 {warn}WARNING{ehi}:{rst}{warn} No {cmd}yodl{warn}, manual pages will not be built.;
((0));
} &&
{ make install;
((1));
} || make install.bin install.fns install.modules } >/dev/null &&
{ type sudo &>/dev/null &&
[[ -e /bin/zsh ]] &&
sudo mv /bin/zsh /bin/zsh.bkp &&
sudo cp -vf Src/zsh /bin/zsh;
((1));
} &&
m {ok}The build succeeded. || m {failure}The build failed.' \
atpull'%atclone' \
countdown \
git \
id-as'zsh-users/zsh' \
lucid \
nocompile \
nocompletions \
for @zsh-users/zsh

# vim: set ft=zsh et ts=2 sw=2 :
42 changes: 42 additions & 0 deletions zsh/5.9.ices.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# zinit package for zsh [5.9]
# Generated by zinit-pkg-gen.sh
# 2023-05-27T11:19:33+02:00
AUTHOR=''
DESCRIPTION='Zsh – the programmer'\''s shell'
LICENSE=''
MESSAGE=''
NAME='zsh'
PARAM_DEFAULT=''
REQUIREMENTS='cc;make;cp;rm'
URL='https://github.com/zsh-users/zsh'
VERSION='5.9.0'

zinit \
as'null' \
atclone'git checkout --quiet zsh-5.9;
./.preconfig;
m {nl}{hi}Building Zsh{…};
CPPFLAGS='\''-I/usr/include -I/usr/local/include'\'' CFLAGS='\''-g -O2 -Wall'\'' LDFLAGS='\''-L/usr/libs -L/usr/local/libs'\'' ./configure --prefix="$ZPFX" >/dev/null &&
{ type yodl &>/dev/null || { m -u2 {warn}WARNING{ehi}:{rst}{warn} No {cmd}yodl{warn}, manual pages will not be built.;
((0));
} &&
{ make install;
((1));
} || make install.bin install.fns install.modules } >/dev/null &&
{ type sudo &>/dev/null &&
[[ -e /bin/zsh ]] &&
sudo mv /bin/zsh /bin/zsh.bkp &&
sudo cp -vf Src/zsh /bin/zsh;
((1));
} &&
m {ok}The build succeeded. || m {failure}The build failed.' \
atpull'%atclone' \
countdown \
git \
id-as'zsh-users/zsh' \
lucid \
nocompile \
nocompletions \
for @zsh-users/zsh

# vim: set ft=zsh et ts=2 sw=2 :
8 changes: 4 additions & 4 deletions zsh/default.ices.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# zinit package for zsh [default]
# Generated by zinit-pkg-gen.sh
# 2021-11-27T11:44:50+01:00
# 2023-05-27T11:19:33+02:00
AUTHOR=''
DESCRIPTION='Zsh – the programmer'\''s shell'
LICENSE=''
Expand All @@ -9,11 +9,12 @@ NAME='zsh'
PARAM_DEFAULT=''
REQUIREMENTS='cc;make;cp;rm'
URL='https://github.com/zsh-users/zsh'
VERSION='5.8.0'
VERSION='5.9.0'

zinit \
as'null' \
atclone'./.preconfig;
atclone'git checkout --quiet zsh-5.9;
./.preconfig;
m {nl}{hi}Building Zsh{…};
CPPFLAGS='\''-I/usr/include -I/usr/local/include'\'' CFLAGS='\''-g -O2 -Wall'\'' LDFLAGS='\''-L/usr/libs -L/usr/local/libs'\'' ./configure --prefix="$ZPFX" >/dev/null &&
{ type yodl &>/dev/null || { m -u2 {warn}WARNING{ehi}:{rst}{warn} No {cmd}yodl{warn}, manual pages will not be built.;
Expand All @@ -23,7 +24,6 @@ zinit \
((1));
} || make install.bin install.fns install.modules } >/dev/null &&
{ type sudo &>/dev/null &&
[[ -f /bin/zsh ]] &&
[[ -e /bin/zsh ]] &&
sudo mv /bin/zsh /bin/zsh.bkp &&
sudo cp -vf Src/zsh /bin/zsh;
Expand Down
Loading

0 comments on commit e3e794b

Please sign in to comment.