Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overengineer the installer #61

Merged
merged 28 commits into from
Nov 17, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3c3a223
Overengineer the installer
pschmitt Nov 14, 2021
c4d3049
Fix #60: Move the installer to scripts/
pschmitt Nov 15, 2021
e7a007a
Add NO_EDIT and NO_TUTORIAL to skip resp. the zshrc edits or the tuto…
pschmitt Nov 15, 2021
ac89282
Update default paths
pschmitt Nov 15, 2021
32d67c4
Move mod-install.sh to scripts/
pschmitt Nov 15, 2021
0742fe9
Only chmod +x the git output script if it was downloaded
pschmitt Nov 15, 2021
c27252c
Remove the last remaining inline color escape sequences
pschmitt Nov 15, 2021
dd70413
We need more emojis.
pschmitt Nov 15, 2021
5253de6
Update scripts/install.sh
alichtman Nov 15, 2021
4c2b461
Update tutorial section
pschmitt Nov 15, 2021
3d8ac20
XDG-ify ZINIT_HOME
pschmitt Nov 15, 2021
52ab2fc
XDG-ify ZINIT_HOME in manpage
pschmitt Nov 15, 2021
0c425c6
🔪 Shorten the tutorial section
pschmitt Nov 15, 2021
428d718
ZPLG -> ZINIT
pschmitt Nov 15, 2021
b9674e2
Add warning about zsh version if < 5.5
pschmitt Nov 15, 2021
6436189
Update zsh version check
pschmitt Nov 15, 2021
fce7912
Add shellcheck
pschmitt Nov 16, 2021
587b540
Fix shellcheck issues
pschmitt Nov 16, 2021
e6c48ac
Fix install.sh URL (don't hardcode the branch name)
pschmitt Nov 16, 2021
6eb36d0
Add new installer section to the CHANGELOG
pschmitt Nov 16, 2021
5f6a254
Fix typo
alichtman Nov 16, 2021
f4588c8
zinit installs on windows (cygwin)
pschmitt Nov 16, 2021
efb25ce
Add FIXME notice in regards to windows artifacts
pschmitt Nov 16, 2021
cd4f759
Merge remote-tracking branch 'upstream/master' into installer-ng
pschmitt Nov 16, 2021
74ee939
Update git-process-output.zsh url
pschmitt Nov 16, 2021
7bbeb17
Enable macOS checks
pschmitt Nov 16, 2021
e099e23
Leverage tilde expansion for artifact files
pschmitt Nov 16, 2021
437b071
Sort steps
pschmitt Nov 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ read it to get the most out of Zinit.
The easiest way to install Zinit is to execute:

```zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma-continuum/zinit/master/scripts/install.sh)"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh)"
```

This will install Zinit in `~/.local/share/zinit/zinit.git`.
Expand Down Expand Up @@ -1041,7 +1041,7 @@ To install just the binary Zinit module **standalone** (Zinit is not needed, the
other plugin manager), execute:

```zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma-continuum/zinit/master/scripts/mod-install.sh)"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/mod-install.sh)"
```

This script will display what to add to `~/.zshrc` (2 lines) and show usage instructions.
Expand Down
19 changes: 18 additions & 1 deletion doc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,23 @@
# Changelog
All notable changes to this project will be documented in this file.

* 16-11-2021
- A brand-new installer has been developped. A few new features have been
alichtman marked this conversation as resolved.
Show resolved Hide resolved
added. There are a bunch of new env vars you can set:

- `NO_INPUT=1`: non-interactive mode (`NO_INPUT=1`)
- `NO_EDIT=1`: do not modify `.zshrc`
- `ZSHRC=/home/user01/.config/zsh/zshrc`: custom path to your `.zshrc`
- `ZINIT_REPO=zdharma-continuum/zinit`: Install zinit from a custom GitHub repo
- `ZINIT_BRANCH=master`: zinit branch to install
- `ZINIT_COMMIT=master`: zinit commit to install (takes precedence over `ZINIT_BRANCH`)
- `ZINIT_INSTALL_DIR=~/.local/share/zinit/zinit.git`: Where to install the zinit repo

⚠️ Please note that the download URL for the installer has changed. It is now:
https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh

For more details check out [PR #61](https://github.com/zdharma-continuum/zinit/pull/61)

* 11-11-2021
- The annexes repos have been renamed to improve discoverability. They used to
be called `z-a-${name}` and have been renamed to `zinit-annex-${name}`. You
Expand Down Expand Up @@ -358,7 +375,7 @@ startup. Please note that these directories will not necessarily be part of your

In other words, instead of `wait'1'` you can enter `wait'1a'`,
`wait'1b'` and `wait'1c'` – to this way **impose order** on the loadings
**regardless of the order of `zplugin` commands**.
**regardless of the order of `zplugin` commands**.
* 26-05-2019
- Turbo-Mode now divides the scheduled events (i.e. loadings of plugins or snippets)
into packs of 5. In other words, after loading each series of 5 plugins or snippets
Expand Down
2 changes: 1 addition & 1 deletion doc/zinit.1
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ The easiest way to install zinit is to execute:
.P
.RS 2
.nf
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma-continuum/zinit/master/doc/install.sh)"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh)"
.fi
.RE
.P
Expand Down