Commit graph

452 commits

Author SHA1 Message Date
Philipp Schmitt cd2a5f1f96
zinit-packages monorepo - Fix #69 2021-11-18 07:56:43 +01:00
vladislav doster b10e1c5fdc
(bugfix): add macos as possible release descriptor
Fixes issue where Neovim uses `macos` as a descriptor and fails to download.
2021-11-16 20:26:43 -06:00
Philipp Schmitt c0f14512a0
Move git-process-output.zsh to share/ 2021-11-14 10:38:41 +01:00
Christian Höltje 672ae51414 fix: more cleaning up urls
Builds on PR #47
2021-11-11 17:57:43 -05:00
Philipp Schmitt b51c3c6922
Update annexes repo names (#38) 2021-11-11 19:59:38 +01:00
Philipp Schmitt 963662a7dd
Update repo url 2021-11-10 18:36:14 +01:00
Christian Höltje 24f10f6367
fix: package are broken again
You cannot refer to a variable in the same statement as it is declared.
2021-11-08 10:32:17 -05:00
Philipp Schmitt b9a5624074
Don't assume the default branch is named "main" 2021-11-07 18:03:21 +01:00
Philipp Schmitt 66f10ed26a
Fix typo 2021-11-04 12:40:11 +01:00
Philipp Schmitt 933ddb4fe2
Update pack repo and default branch 2021-11-04 11:25:12 +01:00
Yann Hodique b3a19a4ea0 support OSTYPE linux-musl
Typically, when zsh is built as a static binary (as with https://github.com/romkatv/zsh-bin)
OSTYPE reports linux-musl, instead of the more common linux-gnu.
Which in turn breaks binary selection from gh-r, and leads to download of mac binaries.

This change maps both linux-gnu and linux-musl to the match string "linux".

This fixes #416
2021-05-24 02:08:26 +00:00
NICHOLAS85 804bfb38a5 *install: Fix .zinit-get-url-mtime function 2021-02-10 03:31:34 -05:00
NICHOLAS85 d82bb6618b *install: Remove trailing whitespace 2021-02-10 03:24:00 -05:00
Sebastian Gniazdowski aef0e46ecc Fix snippet message and slightly improve other ones. 2020-12-19 01:20:09 -06:00
Sebastian Gniazdowski b59b977080 Update messages. 2020-12-18 21:56:27 -06:00
Sebastian Gniazdowski 1cea67c5cc Fix a message. 2020-12-18 05:01:16 -06:00
Sebastian Gniazdowski 94109fbaec Improve messages. 2020-12-18 04:48:20 -06:00
Sebastian Gniazdowski 497e899a10 A small, general messages update. 2020-12-16 21:15:49 -06:00
Sebastian Gniazdowski 96cbc84bf2 Update package related messages. 2020-12-16 21:10:48 -06:00
Christian Höltje 9b9296f40b improve gh-r version matching: foo-linux64
fixes #403
2020-12-03 16:18:06 -05:00
Sebastian Gniazdowski 857d6fb6b4 Update a message. 2020-11-26 06:47:20 -06:00
Sebastian Gniazdowski 0b83b283d8 Update an error message. 2020-11-26 06:28:23 -06:00
Sebastian Gniazdowski cdd7d76746 Rename for z-a-readurl. 2020-11-26 06:11:25 -06:00
Sebastian Gniazdowski a48a47b830 Rename for z-a-readurl 2020-11-26 06:07:59 -06:00
Sebastian Gniazdowski 6063ac8e28 Make any URLs printed with detailed coloring by a generalized mechanism. 2020-11-06 21:03:56 +01:00
Sebastian Gniazdowski acd31fcdf7 Uplift the message colors. 2020-11-06 14:10:29 +01:00
Sebastian Gniazdowski 2b6bf255ab
Merge pull request #397 from Aloxaf/compile_without_alias
Don't expand aliases when compiling to zwc
2020-09-03 16:18:00 +02:00
Sebastian Gniazdowski a563cade19 Respect TMPDIR 2020-09-03 15:27:18 +02:00
Sebastian Gniazdowski c59ca3fa63 Add a dot after a comment text. 2020-08-13 20:50:22 +02:00
Aloxaf 7c938732d7
Don't expand aliases when compiling to zwc 2020-08-06 11:32:35 +08:00
SeongChan Lee 016a888166 Add pull.rebase=false on cloning git repo 2020-08-05 12:40:13 +09:00
Sebastian Gniazdowski 8c1d0c2551 Improve gh-r matching. 2020-07-26 09:49:36 +02:00
Sebastian Gniazdowski a553aea8e4 Improved gh-r binary matching. 2020-07-26 09:38:04 +02:00
Sebastian Gniazdowski ac144b2503 Keep the modification time of an archive file unchanged. 2020-07-26 09:07:22 +02:00
Sebastian Gniazdowski f425f25de8 Improve archive unpacking. 2020-07-26 08:48:37 +02:00
Sebastian Gniazdowski 9638a3fbd1 {dots} → {…}, {bold} → {b}, +{nb} ↔ not-bold. 2020-07-23 21:59:17 +02:00
Sebastian Gniazdowski b3b4fe24c2 FEATURE: `update' has new options: -u/--urge → trigger all hooks even if no new commits, etc.
Works like run-atpull'' ice.
2020-07-23 20:35:04 +02:00
Sebastian Gniazdowski 0580dbadda Rename: ZINIT_ICE → ICE. 2020-07-23 13:59:41 +02:00
Sebastian Gniazdowski 4582d9adfb Improved logic and messages for the options-parsing for `update' and in general. 2020-07-23 13:29:20 +02:00
Sebastian Gniazdowski 81f4836e50 ... → … in in all messages, if UTF-8 locale. 2020-07-22 06:14:04 +02:00
Sebastian Gniazdowski ccf90a5598 Skip part of message when the id is the same. 2020-07-20 12:04:14 +02:00
Sebastian Gniazdowski efff176779 Show the correct package name. 2020-07-19 17:04:31 +02:00
Sebastian Gniazdowski a2746b844c Rethink and improve package-installation messages. 2020-07-18 16:29:39 +02:00
Sebastian Gniazdowski a5e0cce53a emulate near every zcompile. 2020-07-18 07:12:45 +02:00
Sebastian Gniazdowski 5c72619da3 FEATURE: A new ice binary' ↔ works like null' however installs completions.
- `null' works like: pick'/dev/null' nocompletions.
- `binary' works like: pick'/dev/null'.

I.e.: it denotes a binary, no-source plugin that still might have some
completions to install.
2020-07-18 00:01:30 +02:00
Sebastian Gniazdowski 1a7506a641 Cleanup in *install-completions. 2020-07-17 23:56:46 +02:00
Sebastian Gniazdowski 371f85496e Fix `zinit ice …; zinit update …' for snippets. 2020-07-17 15:27:33 +02:00
Sebastian Gniazdowski a4ea80e06f Update colors. 2020-07-17 14:35:13 +02:00
Sebastian Gniazdowski da16c33832 Update a message. 2020-07-17 13:25:02 +02:00
Sebastian Gniazdowski 404ebdee88 Improve a package-installation message. 2020-07-15 13:06:10 +02:00
Sebastian Gniazdowski c67f58c4e5 Make compile'' support multiple patterns separated via semicolon `;'. 2020-07-15 07:21:36 +02:00
Sebastian Gniazdowski 1c2d3da430 Uplift *compile-plugin. 2020-07-15 07:12:50 +02:00
Sebastian Gniazdowski f6dff51a22 FEATURE: A new ice `null' working like as'null', e.g.:
zi null sbin"vims" for MilesCranmer/vim-stream

instead of:

    zi as"null" sbin"vims" for MilesCranmer/vim-stream
2020-07-15 07:02:21 +02:00
Sebastian Gniazdowski 78a5275fb8 Don't rely on = for whitespace-splitting, use (s: :) instead. 2020-07-14 22:09:15 +02:00
Sebastian Gniazdowski f6865ac974 Fix creinstall, #379. 2020-07-12 19:19:20 +02:00
Sebastian Gniazdowski 6130cf8202 Longer snippet ID in messages. 2020-07-11 22:24:26 +02:00
Sebastian Gniazdowski 4aa958b269 Better snippet ID in messages. 2020-07-11 22:23:41 +02:00
Sebastian Gniazdowski 43d1629412 Add a message on snippet being already up to date. 2020-07-11 19:10:14 +02:00
Sebastian Gniazdowski 49ab26e981 Restore the previous snippet-ID shown on install/update. 2020-07-11 19:09:34 +02:00
Sebastian Gniazdowski bbd8401fa0 Cleanup. 2020-07-11 19:09:19 +02:00
Sebastian Gniazdowski afe9a0b1c5 Fix compilation of snippets. 2020-07-10 13:54:13 +02:00
Sebastian Gniazdowski 3deaaddff6 Add and use {dots} to +zinit-message: 3 dots, Unicode `…' if UTF-locale. 2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski 7dae013626 Improve snippet-preamble installation/update messages. 2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski 012cced313 Improve the plugin-installation preamble message, e.g.: use Unicode
ldots `…' if locale are properly set.
2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski 06b715c8e5 IMPORTANT: API change of the annexes – you should update them too and restart the shell. 2020-07-10 13:54:10 +02:00
Sebastian Gniazdowski 72991f18d4 Fix and improve a message. 2020-07-09 04:11:30 +02:00
Sebastian Gniazdowski 864226082b Better snippet messages during installation and update. 2020-07-09 02:34:39 +02:00
Sebastian Gniazdowski bf32879bb3 A much more sensible snippet ID shown during installation and update. 2020-07-09 02:33:11 +02:00
Sebastian Gniazdowski cb86df29af Make the compinit call after completions' installation faster. 2020-07-09 01:55:47 +02:00
Sebastian Gniazdowski 460ddb2c9c Fine tune the package-installation messages. 2020-07-08 19:19:33 +02:00
Sebastian Gniazdowski b825695113 Improve messages for package installations (zinit pack for …). 2020-07-08 18:54:35 +02:00
Sebastian Gniazdowski d5a8905d1e Extend the annex architecture – pass the context-subtype to the hook. 2020-07-08 18:20:46 +02:00
Sebastian Gniazdowski eaf4965ded FIX: no empty plugin being left when the clone fails. 2020-07-08 14:50:08 +02:00
Sebastian Gniazdowski a55f70afb9 Exclude *.ps1 files from the files seen as completions. 2020-07-08 10:42:02 +02:00
Sebastian Gniazdowski d061fe8d1b Simpler globs. 2020-07-08 10:39:55 +02:00
Sebastian Gniazdowski ac3682e2f8 Optimize ps-on-update'' hook. 2020-07-07 20:35:15 +02:00
Sebastian Gniazdowski 509df50a67 Optimize atpull hook. 2020-07-07 20:34:42 +02:00
Sebastian Gniazdowski a017da86ac Optimize !atpull hook. 2020-07-07 20:32:04 +02:00
Sebastian Gniazdowski b36f98d554 Respect reset'' contents for Git plugins. 2020-07-07 20:31:02 +02:00
Sebastian Gniazdowski d5d6100ffb Optimize compile hook. 2020-07-07 20:07:43 +02:00
Sebastian Gniazdowski c2ff99ce57 Optimize mv and cp hooks. 2020-07-07 20:05:19 +02:00
Sebastian Gniazdowski 44adcdf8bb Fix +zinit-message invocation. 2020-07-07 19:29:13 +02:00
Sebastian Gniazdowski 88765943ba Fix nocompile ice. 2020-07-06 22:13:20 +02:00
Sebastian Gniazdowski d4beb8db41 Improve ziextract's messages. 2020-07-06 21:38:36 +02:00
Sebastian Gniazdowski 8078604f04 Fix snippet updating - for non-github, regular URLs the snippet will not
always redownload (depending on the remote mtime).
2020-07-06 21:21:43 +02:00
Sebastian Gniazdowski 88f196a855 print → +zinit-message 2020-07-06 21:21:17 +02:00
Sebastian Gniazdowski b21762a623 Simplify mv'' and cp'' hooks. 2020-07-06 19:23:21 +02:00
Sebastian Gniazdowski e3252dea71 Simplify extract'' hook. 2020-07-06 19:16:46 +02:00
Sebastian Gniazdowski f84a4b5118 Can use ZINIT_ICE. 2020-07-06 19:16:19 +02:00
Sebastian Gniazdowski 64e558ccc3 Really fix the make hook. 2020-07-06 13:28:32 +02:00
Sebastian Gniazdowski 6b3b821641 Rewrite atclone hook. 2020-07-06 13:06:23 +02:00
Sebastian Gniazdowski 18119a8927 Fix a math expression error. 2020-07-06 07:35:57 +02:00
Sebastian Gniazdowski b55ff297f7 More compact hook preamble. 2020-07-06 07:31:10 +02:00
Sebastian Gniazdowski dbd55e6de1 Fix hook-function name. 2020-07-05 22:31:54 +02:00
Sebastian Gniazdowski 870ab0dc8b A more generic make'' implementation. 2020-07-05 22:30:42 +02:00
Sebastian Gniazdowski 10676dd295 Cleanup of the result-holding arrays related code. 2020-07-05 16:27:06 +02:00
Sebastian Gniazdowski 54363e33a8 Introducing a new annex/zinit hook argument: a subtype, that denotes the
place where the hook is being invoked. Currently only for hook:preinit.
2020-07-05 15:14:12 +02:00
Sebastian Gniazdowski aa5a2ce8cc Fix a typo. 2020-07-05 05:03:36 +02:00
Sebastian Gniazdowski 247f5bc926 Extend comments. 2020-07-05 05:03:04 +02:00
Sebastian Gniazdowski 58c85bf5cf Allow compiling gh-r plugins e.g.: with compile'' ice. 2020-07-05 04:45:24 +02:00
Sebastian Gniazdowski e17a42eccc Improve compile'' handling. 2020-07-05 04:36:55 +02:00
Sebastian Gniazdowski ed5864a488 Finished a completely fresh, elastic architecture. 2020-07-04 22:12:43 +02:00
Sebastian Gniazdowski d5321e0b84 Don't run the reset'' code when there's no file. 2020-07-04 21:23:39 +02:00
Sebastian Gniazdowski ce53848800 Fix some comments. 2020-07-04 21:23:15 +02:00
Sebastian Gniazdowski 464eb23dc7 Work in progress – a major cleanup. 2020-07-04 21:20:24 +02:00
Sebastian Gniazdowski 59340b01a1 Work in progress: Extended preinit annex-hook processing. 2020-07-04 21:10:25 +02:00
Sebastian Gniazdowski fbf9a0a5a5 Improve the compile'' ice. 2020-07-04 21:05:21 +02:00
Sebastian Gniazdowski 511e9e79bc Work in progress (the major cleanup) – small side-task: improve messages 2020-07-04 19:52:08 +02:00
Sebastian Gniazdowski 7bbd0200c7 Improve the messages and logic of reset-hook. 2020-07-04 18:21:41 +02:00
Sebastian Gniazdowski eb810d7953 Work in progress – the cleanup. 2020-07-04 11:54:18 +02:00
Sebastian Gniazdowski 45705a1049 Set the pull-active flag for file-snippets. 2020-07-04 11:30:52 +02:00
Sebastian Gniazdowski c732437cbd Better messages on file snippets. 2020-07-04 11:30:17 +02:00
Sebastian Gniazdowski 8a4e3d924a Work in progress: The code uplift via hooks-mechanism 2020-07-04 07:54:54 +02:00
Sebastian Gniazdowski 4236d9769e Work in progress – the major cleanup in the hook-related code. 2020-07-04 06:20:06 +02:00
Sebastian Gniazdowski 8ae687506d Run `rehash' after any initial download and after the parallel update. 2020-07-04 05:09:49 +02:00
Sebastian Gniazdowski 5450909912 ZINIT[col-msg1 → col-msg] plus related print → +zinit-message changes 2020-07-04 03:50:33 +02:00
Sebastian Gniazdowski c892ae55e0 A few print → +zinit-message conversions 2020-07-04 00:49:23 +02:00
Sebastian Gniazdowski 17bc4cbb24 install: Change narrowing to *.rpm 2020-06-29 15:06:51 +02:00
Sebastian Gniazdowski fd1e2f5df6 install: Don't create the failed snippets #370 2020-06-28 11:22:52 +02:00
Sebastian Gniazdowski 5c5dcb32f7 install: Add `command' prefix 2020-06-28 11:21:59 +02:00
Sebastian Gniazdowski b01530ac2c install: MSYS support 2020-06-24 15:39:27 +02:00
Sebastian Gniazdowski 38389d9381 *install: Fix a syntax 2020-06-24 12:48:05 +02:00
Sebastian Gniazdowski d9edce115a install: Fix the from=gh-r for Windows, it could download OS X binaries 2020-06-23 15:56:25 +02:00
Sebastian Gniazdowski 3055bd8e8c zinit,install: Update the colors 2020-06-20 21:38:08 +02:00
Sebastian Gniazdowski 95415bb31d all: Change [code] to {code} in +zinit-message and in `m' 2020-06-20 15:57:19 +02:00
Sebastian Gniazdowski 590217af27 *install: Feature - all (cURL) progress bars are guaranteed single line 2020-06-20 03:13:23 +02:00
Sebastian Gniazdowski a0cdf6b5c0 zinit,install: Better messages 2020-06-19 14:17:55 +02:00
Sebastian Gniazdowski 3bfdf99a67 install: Better message 2020-06-19 14:14:16 +02:00
Sebastian Gniazdowski 16c08431a6 *install: Improve the file downloadings 2020-06-18 17:58:36 +02:00
Sebastian Gniazdowski f21508259c install: Better invocation of chmod. 2020-06-17 22:37:11 +02:00
Sebastian Gniazdowski 1ec9c7a144 *install: Abort when the extracting tool isn't found 2020-06-17 22:21:26 +02:00
Sebastian Gniazdowski 38c619c6da *install: Safer DMG extracting 2020-06-17 22:20:12 +02:00
Sebastian Gniazdowski c1163ff3ab *install: FEATURE – support Windows installers in extract''/ziextract 2020-06-17 22:18:12 +02:00
Sebastian Gniazdowski 0ca3da3cca install: print → +zinit-message 2020-06-17 18:12:56 +02:00
Sebastian Gniazdowski c32776ef6d *install: print → +zinit-message 2020-06-13 12:30:04 +02:00
Sebastian Gniazdowski 22bdc496c0 *install: Update 2020-06-13 11:05:41 +02:00
Sebastian Gniazdowski da257596e5 *install: FEATURE – `ziextract' has --move2 option, which moves files two
levels up. E.g.: if there will be a dir: Pulumi/bin/{pulumi,pulumi2},
then after `ziextract' there will be: ./{pulumi,pulumi2}. To obtain the
same effect using the extract'' ice, pass two exclamation marks, i.e.:
extract'!!'. A real-world example:

zi id-as'pulumi' as'monitor|null' mv'pulumi pulumi_' extract'!!' \
    dlink='https://get.pulumi.com/releases/sdk/pulumi-%VERSION%-windows-x64.zip' \
    sbin'pulumi*' for \
        https://www.pulumi.com/docs/get-started/install/versions/
2020-06-13 01:43:47 +02:00
Sebastian Gniazdowski 45fd8c8358 *install: Make ziextract --move better working 2020-06-12 18:44:12 +02:00
Sebastian Gniazdowski 0a7d9d1465 install: Alternate syntax 2020-06-12 18:09:39 +02:00
Sebastian Gniazdowski 0ff0c7855c Revert "all: Alternate syntax"
This reverts commit 611aa3f5e6.
2020-06-10 18:58:11 +02:00
Sebastian Gniazdowski 611aa3f5e6 all: Alternate syntax 2020-06-10 17:05:15 +02:00
Sebastian Gniazdowski 279321d512 all: Correct print → builtin print 2020-06-06 16:43:34 +02:00
Sebastian Gniazdowski 9352ffe864 all: print → builtin print 2020-06-06 15:07:08 +02:00
Sebastian Gniazdowski bbe81ad3fa *install: Change mirror 2020-06-06 14:47:11 +02:00
Sebastian Gniazdowski 2797549d24 *install: Fix completion-snippets updating #328 2020-06-01 13:18:24 +02:00
Sebastian Gniazdowski ee12924b1d *install: Ensure that Git progress-bar tool will correctly run 2020-05-30 19:14:21 +02:00
Sebastian Gniazdowski 0b9d05ae8e *install: Fix the installed-execs message 2020-05-30 18:25:25 +02:00
Sebastian Gniazdowski a07a1817d2 *install: Fix a syntax 2020-05-30 17:59:40 +02:00
Sebastian Gniazdowski 6d3be43d6b *install: print → +zinit-message in one place 2020-05-30 16:47:19 +02:00
Sebastian Gniazdowski 5ab08f4f43 *install: Alternate syntax 2020-05-29 16:12:33 +02:00