Commit graph

452 commits

Author SHA1 Message Date
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
Sebastian Gniazdowski 20ee6ac334 *install,*autoload: No quoting of string argument in invocation of hooks 2020-05-27 05:25:46 +02:00
Sebastian Gniazdowski e445c444a3 *install: More better messages in ziextract 2020-05-27 05:18:33 +02:00
Sebastian Gniazdowski cf5a9212e0 *install: Improve messages in ziextract 2020-05-27 04:47:04 +02:00
Sebastian Gniazdowski a7f2d14b48 *install: Better messages in ziextract 2020-05-27 04:43:37 +02:00
Sebastian Gniazdowski de7ebf35bd *install: Allow empty argument list to zicp' and zimv' → zicp \* → . 2020-05-27 01:35:37 +02:00
Sebastian Gniazdowski 7352aaac70 *install: Allow zicp' and zimv' to "map" the directories onto existing 2020-05-27 00:48:48 +02:00
Sebastian Gniazdowski bc04807e2e *install: Localize variables 2020-05-27 00:46:51 +02:00
Sebastian Gniazdowski 86407c46ad *install: Update a message 2020-05-26 19:41:02 +02:00
Sebastian Gniazdowski 9768fce460 *install: Allow quoting of the non-breaking space in extract'' 2020-05-24 10:45:40 +02:00
Sebastian Gniazdowski 3a8049e630 *install: Fix extract''/ziextract #340 2020-05-20 05:31:00 +02:00
Sebastian Gniazdowski aa3beb1722 zinit,*install: FEATURE: zicm and zimv functions for atclone''/atpull''
usage. Use them to install files and directories into $ZPFX or another
directory. Example:

zi make'!' atclone'zicp share bin/fzf → bin usr -> /usr/local' for junegunn/fzf

Without an arrow (→,-> or =>) copies into the same directory in $ZPFX,
i.e.: `share' onto `$ZPFX/share' in the example. With an arrow –
into the given directory. Supports also file names with spaces – use the
non-breaking space (Right–AltGr + Space) in place of the intended space.
2020-05-19 10:16:45 +02:00
Sebastian Gniazdowski ceaf0b86e9 *install: Fine-tune messages in Cygwin package downloading 2020-05-15 05:42:34 +02:00
Sebastian Gniazdowski b5271d02df *install: Increase Cygwin-packages robustness 2020-05-15 02:18:51 +02:00
Sebastian Gniazdowski 8b6d011ce1 *install: Correct nonexistent Cygwin-package handling 2020-05-15 01:58:13 +02:00
Sebastian Gniazdowski 76f63c0bb1 *install: Make the plugin-directory cleanup more `insisting' 2020-05-15 01:57:04 +02:00
Sebastian Gniazdowski d9d3271570 *install: Initialize REPLY with empty value 2020-05-15 01:53:57 +02:00
Sebastian Gniazdowski af9db4d3c8 *install: A more straightforward way of a function cleanup 2020-05-15 01:53:23 +02:00
Sebastian Gniazdowski 99f58796f4 *install: File downloads now show the cURL progress bar 2020-05-15 01:47:04 +02:00
Sebastian Gniazdowski 7af1b3c886 *install: Allow interrupting package downloads, clenup unsuccessful ones 2020-05-15 01:41:13 +02:00
Sebastian Gniazdowski 844af5ee45 *install: Allow interrupting plugin downloads, cleanup on unsuccessful ones 2020-05-15 01:34:03 +02:00
Sebastian Gniazdowski d38bfb1eb1 *install: Finally resolve the download progress-bar issues 2020-05-14 22:40:30 +02:00
Sebastian Gniazdowski 8b71166380 *install: Correct progress bar showing during Curl invocation 2020-05-14 18:03:29 +02:00
Sebastian Gniazdowski 7616aa5a4b *install: Make `creinstall -q .' run correctly #321 2020-05-14 14:07:51 +02:00
Mykola Rybak 09b78e9646 Fix completions installation condition
Recently zinit started installing completions event if nocompletions
ice is specified. This seems to be related to recent commit
a46f97e8c3

With that change, if either nocompletions or as"null" ices are not
specified than completions are installed, so to avoid completions
installation one has to specify both nocompletions _and_ as"null".

This commit changes logic to be equivalent to what was before.
2020-05-13 09:13:51 +02:00
Sebastian Gniazdowski 639e3e53ad zinit,*install: Feature: `creinstall' has -Q option muting ALL output
Issue #326
2020-05-09 15:44:05 +02:00
Sebastian Gniazdowski 90c6d55301 *install: Better method of quoting a string 2020-05-09 15:06:35 +02:00
Sebastian Gniazdowski 606c1b91ca *install: React to more interruption signals 2020-05-09 15:02:55 +02:00
Sebastian Gniazdowski f32ef2468b *install: Try to remove the plugin/snippet dir upon interruption 2020-05-09 15:01:33 +02:00
Sebastian Gniazdowski b94bb051af *install: FEATURE: download multiple files from gh-r by bpick"pat1;pat2"
or specifying the bpick-ice multiple times. Issue #330.
2020-05-09 12:31:31 +02:00
Sebastian Gniazdowski 532b533d41 install: Better gh-r matching for ARM and Windows 2020-05-09 12:30:35 +02:00
Sebastian Gniazdowski b8b3ad2a4b *side,*install,*autoload: __VAR -> ___VAR 2020-05-09 12:29:55 +02:00
Sebastian Gniazdowski 4c2d27b681 *install: Select a better mirror at first (from"cygwin") 2020-05-08 12:30:55 +02:00
Sebastian Gniazdowski 223fa78d04 *install: Download Cygwin package once 2020-05-06 18:30:40 +02:00
Sebastian Gniazdowski fa931205a0 *install: Nicer progress bar 2020-05-06 15:55:12 +02:00
Sebastian Gniazdowski a8d0c77f24 *install: Correct curl and wget invocation 2020-05-06 15:46:55 +02:00
Sebastian Gniazdowski 29b1031fa9 *install,*autoload: FEATURE: from"cygwin" that downloads and unpacks the
given Cygwin package, from a random Cygwin mirror. Example:

zinit from"cygwin" for gzip

Or a more real-world example that includes exposing the binary using the
Bin-Gem-Node annex:

zinit from"cygwin" sbin"usr/bin/gzip.exe -> gzip" for gzip
2020-05-06 15:33:52 +02:00
Sebastian Gniazdowski ad9ece5331 all: Extend vim modeline 2020-05-06 14:34:34 +02:00
Sebastian Gniazdowski 394a89ebd2 *install,*autoload: Trailing spaces and alternate syntax 2020-05-06 14:26:30 +02:00
Sebastian Gniazdowski 994c2cfc83 *install: A better machine-type recognition for from"gh-r" #318 2020-05-06 14:23:32 +02:00
Sebastian Gniazdowski 357996708a *install: Improve the download function 2020-05-06 14:21:35 +02:00
Sebastian Gniazdowski 6d4ba4add2 zinit,*install,*autoload: Remove trailing spaces 2020-05-06 14:16:51 +02:00
Sebastian Gniazdowski 9c353e32c2 *install: Allow empty cloneopts to disable recursive clone #312 2020-04-21 21:03:16 +02:00
Sebastian Gniazdowski fbc77d9985 *install: Filter out .asc files #311 2020-04-20 19:03:01 +02:00
Sebastian Gniazdowski 384cd76947 *install: Use emulate instead of setopt 2020-04-18 13:42:33 +02:00
Sebastian Gniazdowski 4e9df68ca5 *install,*autoload: Fix compinit calling when `update -p' #284 2020-04-18 13:41:23 +02:00
Sebastian Gniazdowski fe70012a1c *install: Prefer tar.gz over deb/rpm if dpkg-deb/cpio aren't available
Issue #307
2020-04-17 17:50:20 +02:00
Sebastian Gniazdowski ff084fd69f *install: Alternate syntax in one place 2020-04-17 17:48:39 +02:00
Sebastian Gniazdowski 7e84e7bb9c *install: Feature – compile'' now stores the compiled files in
ADD_COMPILED array instead of displaying them.
2020-04-16 18:50:43 +02:00
Sebastian Gniazdowski 44e04aef43 *install: Allow calling creinstall in atclone → preserve INSTALLED_COMPS
and SKIPPED_COMPS
2020-04-16 18:40:12 +02:00
Sebastian Gniazdowski 8ae32e1037 *install: Single rm -f 2020-04-16 18:24:59 +02:00
Sebastian Gniazdowski 868fad03f5 *install: Don't reinstall disabled completions 2020-04-16 16:39:14 +02:00
Sebastian Gniazdowski 69abeab722 *install: Remove unneeded quoting 2020-04-16 16:38:37 +02:00
Sebastian Gniazdowski d411068c8f *zinit: emulate instead of setopt 2020-04-16 16:37:57 +02:00
Sebastian Gniazdowski 5dd98f71e1 *install: Correctly handle completion URLs 2020-04-16 16:16:30 +02:00
Sebastian Gniazdowski f53c4cf7f1 *install: Correctly download completion files 2020-04-16 15:19:53 +02:00
Sebastian Gniazdowski 349caca207 rpm2cpio.zsh,*install: Move a file 2020-04-15 19:17:46 +02:00
Sebastian Gniazdowski 84b61e65ab *install: Support updating using the new URL prefixes 2020-04-15 19:13:46 +02:00
Sebastian Gniazdowski 23493ec5c8 zinit,*install: FEATURE – ability to skip the /themes/….zsh-theme from a
OMZ theme URL, e.g.: zi for OMZT::gnzh
2020-04-15 19:04:34 +02:00
Sebastian Gniazdowski 37677c1fa2 *install: Correctly extend single-file URLs 2020-04-15 18:40:23 +02:00
Sebastian Gniazdowski 66ca5e4300 *install: FEATURE – …/name.plugin.zsh can be skipped from single-file
(non svn) snippet URL – e.g.: OMZ::plugins/git or OMZP::git is
sufficient.
2020-04-15 18:24:11 +02:00
Sebastian Gniazdowski 216045cbe1 *install: Alternate syntax in one place 2020-04-15 18:21:44 +02:00
Sebastian Gniazdowski b96f274f4a zinit,*install: Correct ZSH typeset 2020-04-15 18:20:37 +02:00
Sebastian Gniazdowski 46a2084b97 zinit,*install,*autoload: FEATURE - new prefixes OMZP:: = OMZ::/plugins/
OMZL:: = OMZ::lib/, PZTM:: = PZT::modules/, for both svn and single-file
snippets. Example use:
  zinit for OMZP::ruby/ruby.plugin.zsh
  zinit svn for OMZP::ruby
2020-04-15 16:37:43 +02:00
Sebastian Gniazdowski 373eb3c23e zinit,*install: Correctly move the snippet of code 2020-04-15 16:35:32 +02:00
Sebastian Gniazdowski aec8ed3cca *install: Handle uncompiled snippet better 2020-04-15 16:26:21 +02:00
Sebastian Gniazdowski 6f0f9e4807 zinit,*install: Move a snippet of code to *install 2020-04-15 16:04:53 +02:00
Sebastian Gniazdowski e11b9617fb zinit,*install: Move a snippet to *install 2020-04-15 15:08:26 +02:00
Sebastian Gniazdowski a46f97e8c3 *install: More clear condition 2020-04-12 19:55:57 +02:00
Sebastian Gniazdowski 9e683d2af0 *install: Unfunction *git-clone #300 2020-04-12 19:50:23 +02:00
Sebastian Gniazdowski fdcd13b903 *install: Better messages #300 2020-04-12 19:49:16 +02:00
Sebastian Gniazdowski 13661ee555 *install: Remove code duplication #300 2020-04-12 19:36:40 +02:00
Sebastian Gniazdowski ef83c60c58 *install: Try to workaround a possible problem with Git #300 2020-04-12 19:33:20 +02:00
Sebastian Gniazdowski 872be10400 *install,*autoload: Don't run compinit in parallel update but after it
Issue #284
2020-04-10 19:27:37 +02:00
Sebastian Gniazdowski ad4ba39b44 *install: Make the file compile 2020-04-10 18:44:12 +02:00
Sebastian Gniazdowski 0599a8590b *install: Extends #299 2020-04-10 18:37:13 +02:00
Sebastian Gniazdowski db3e810088 *install: Fixes #299 2020-04-10 15:45:27 +02:00
Sebastian Gniazdowski c4f74ca439 zinit,*install,*autoload: A more safe sourcing of the side sources 2020-04-07 16:00:16 +02:00
Sebastian Gniazdowski 6405bdb78d *install: Feature: support extracting of RPMs 2020-04-06 17:42:59 +02:00
Sebastian Gniazdowski 9a60b7e6fa *install: Support different sha sums 2020-04-05 18:12:28 +02:00
Sebastian Gniazdowski ecc065a2af *install: Feature: from"gh-r", extract'', ziextract support DEB packages 2020-04-05 14:08:27 +02:00
Sebastian Gniazdowski f847a47a89 *install: Check and inform about missing unpacking programs 2020-04-05 14:07:45 +02:00
Sebastian Gniazdowski a8928a47f2 *install: A small fix for a message 2020-04-04 17:33:45 +02:00
Sebastian Gniazdowski a8c93d588d *install: Improve a message 2020-04-02 17:02:03 +02:00
Sebastian Gniazdowski ff976daf72 *install: Support as-monitor `require' 2020-04-02 16:56:16 +02:00
Sebastian Gniazdowski 6d0d843f20 *install: Correctly detect errors from unpacking 2020-04-02 16:51:26 +02:00
Sebastian Gniazdowski caa3df96b1 *install: Improve a message 2020-04-02 16:40:05 +02:00
Sebastian Gniazdowski bfb9186d49 *install: Prevent error messages 2020-04-01 19:54:47 +02:00
Sebastian Gniazdowski 1b1cba1c1c *install: Improve zpextract's --move option 2020-04-01 19:35:43 +02:00
Sebastian Gniazdowski fa3ad1036e *install: Remove unneeded braces 2020-04-01 19:22:06 +02:00
Sebastian Gniazdowski 9ba306f6f5 *install: Inform about the $INSTALLED_EXECS array 2020-04-01 19:10:45 +02:00
Sebastian Gniazdowski 60fb3ceb59 *install,*autoload: Keep unpacked executables in $INSTALLED_EXECS array 2020-04-01 19:07:35 +02:00
Sebastian Gniazdowski 1b66664909 *install: Rename :zinit* → →zinit* 2020-04-01 18:29:46 +02:00
Sebastian Gniazdowski 0c639b5217 *install: `ziextract' – correctly handle --norm and --move 2020-04-01 18:28:19 +02:00
Sebastian Gniazdowski 7806356df4 *install: Fix gh-r version handling 2020-03-20 10:16:09 +01:00
Sebastian Gniazdowski d9645fdf6f *install,*autoload: Rename a function 2020-03-20 10:15:26 +01:00
Sebastian Gniazdowski bd61130880 *install: Output current gh-r version 2020-03-20 10:05:39 +01:00
Sebastian Gniazdowski 2b21ff2a38 Merge /home/sg/zinit 2020-03-20 06:29:49 +01:00
x1a0 bc49c050e6 Filter out .sha256 urls 2020-03-19 11:21:07 +01:00
Sebastian Gniazdowski 2524d20b0a *install: Fix `update' to not react on existing plugin directory
Issue #281
2020-03-19 11:14:46 +01:00
Sebastian Gniazdowski e4101367e4 Revert "zinit,*install: Rename functions"
This reverts commit 52eb588495.
2020-03-13 15:35:18 +01:00
Sebastian Gniazdowski 52eb588495 zinit,*install: Rename functions 2020-03-13 15:34:25 +01:00
Sebastian Gniazdowski 1f08e3249d Revert "all: Cleanup"
This reverts commit f811bf36f1.
2020-03-13 12:34:18 +01:00
Sebastian Gniazdowski f811bf36f1 all: Cleanup 2020-03-06 11:26:23 +01:00
Sebastian Gniazdowski d70b07b8f7 *install: Fix a *get-object-path call 2020-03-06 10:01:29 +01:00
Sebastian Gniazdowski 488039ef8e *install: Alternate syntax in few places 2020-03-06 07:26:29 +01:00
Sebastian Gniazdowski 9c9db19092 *install: Fix a message in *setup-plugin-dir 2020-03-06 07:16:26 +01:00
Sebastian Gniazdowski 8cd6c0796a *install: Unify two cases in *setup-plugin-dir 2020-03-06 07:13:43 +01:00
Sebastian Gniazdowski 2d14c8b9e8 *install: Alternate syntax in few places 2020-03-06 06:53:19 +01:00
Sebastian Gniazdowski 3ae28681e8 *install: Compile the plugin with `emulate zsh' set
Issue #273
2020-03-02 12:24:50 +01:00
Sebastian Gniazdowski 1c5fdda600 *install: Use correct variable name `ZINIT_ICE'
See: a305bf81ac (commitcomment-37499776)
2020-02-26 21:43:22 +01:00
Sebastian Gniazdowski 0c728966d0 *install: *update-snippet verifies if the snippet exists
Issue #270
2020-02-26 10:58:02 +01:00
Sebastian Gniazdowski a9b2874e5e *install,*autoload: Provide ZINIT_ICE for *gh-r-version → no $ice refs 2020-02-26 09:32:11 +01:00
Sebastian Gniazdowski 27bdc46685 *install: Sophisticated message from *gh-r-version that adapts to bpick 2020-02-26 09:22:49 +01:00
Sebastian Gniazdowski faf758474d *install: *gh-r-version is made additionally testable 2020-02-26 09:03:25 +01:00
Sebastian Gniazdowski 3dec15b1ba *install: KSH_ARRAYS is disabled (emulate zsh) → no need for braces 2020-02-26 09:02:32 +01:00
Sebastian Gniazdowski eaea70043e *install: A nice message with print -P and ZINIT[col-*] in *gh-r-version 2020-02-26 09:01:21 +01:00
Sebastian Gniazdowski 286896bda1 *install: Always reset REPLY in *gh-r-version 2020-02-26 09:00:35 +01:00
Sebastian Gniazdowski a305bf81ac *install: Uplift *gh-r-version, a cleanup 2020-02-26 08:59:23 +01:00
Sebastian Gniazdowski 5ad9d1b175 *install: emulate instead of setopt in *gh-r-version 2020-02-26 08:57:29 +01:00
Sebastian Gniazdowski 5f587d1d31 *install,*autoload: Abort when there's no suitable binary file found 2020-02-26 08:56:25 +01:00
NICHOLAS85 44ebbf566f *install,*autoload: Consolidate gh-r version logic 2020-02-26 08:32:54 +01:00
Sebastian Gniazdowski a958509219 *install: Better / better separated pack''-related messages 2020-02-26 05:18:20 +01:00
Sebastian Gniazdowski 96e0d4b67a *install: Uplift ↑ of *update-snippet → use of *get-object-path 2020-02-26 00:29:20 +01:00
Sebastian Gniazdowski a268905a9a zinit,*side,*install: Better snippet paths for domain-only URLs 2020-02-25 19:50:55 +01:00
Sebastian Gniazdowski e93ea2832e *install: A small cleanup in *update snippet
Issue #184
2020-02-25 18:56:53 +01:00
Sebastian Gniazdowski ad97d51eb9 zinit,*install,*autoload: Protect against word-split and spaces-BIN_DIR 2020-02-21 18:26:15 +01:00
Sebastian Gniazdowski 4400d85851 *install: `ziextract' checks if the argument was given 2020-02-20 18:50:58 +01:00
Sebastian Gniazdowski 5190d9a18e *install: `extract' now skips doing backup also when 2 or more archives
will be detected in the auto mode
2020-02-20 18:24:36 +01:00
Sebastian Gniazdowski c49cee655f *install: Allow un-quieting of a single update operation (snippets only) 2020-02-20 08:09:36 +01:00
Sebastian Gniazdowski 598763dfd1 *install: Skip copying message for /dev/null snippet 2020-02-20 07:42:31 +01:00
Sebastian Gniazdowski cb083d2693 *install: Remove unneeded quotes in one place 2020-02-20 04:40:03 +01:00
Sebastian Gniazdowski aa7800dc72 *install: Use -f with `ln' 2020-02-20 02:48:25 +01:00
Sebastian Gniazdowski c82422f1be *install,*autoload: Exclude *.ri files (Ruby) from completions patterns 2020-02-19 23:11:15 +01:00
Sebastian Gniazdowski 431bd2b906 *install: Set the multi-flag to 2 when installing an object (p/s) 2020-02-18 03:44:27 +01:00
Sebastian Gniazdowski 6ec3c08b00 *install: Remove unneeded quoting from *download-snippet
Issue #184
2020-02-18 03:37:02 +01:00
Sebastian Gniazdowski ef41a5c159 *install: No warncreateglobal in ziextract in case someone wants to use
it outside Zinit.
2020-02-18 02:34:58 +01:00
Sebastian Gniazdowski 79c689f52d *install: Don't disable noshortloops to allow Prezto modules to compile
Issue #263
2020-02-13 21:06:11 +01:00
Sebastian Gniazdowski 6301871d43 zinit,*install: Two assigns in one line 2020-02-13 04:59:48 +01:00
Sebastian Gniazdowski 6a72ced371 *install: A better message print 2020-02-13 04:11:56 +01:00
Sebastian Gniazdowski 1017376f42 zinit,*install,*autoload: Cleanup in snippet-update code
Issue #184
2020-02-13 04:10:35 +01:00
Sebastian Gniazdowski 13fc722ab0 *install: Remove unneeded quoting from 2 places 2020-02-13 04:07:47 +01:00
Sebastian Gniazdowski 4a161add10 *install: Make extract' respect the -q/--quiet option of update' 2020-02-11 23:25:15 +01:00
Sebastian Gniazdowski dc7e2f2722 *install: Reformat a long message 2020-02-11 01:36:44 +01:00
Sebastian Gniazdowski 3aca065cac *install: Don't remove the single-file snippet before copying 2020-02-10 18:45:26 +01:00
Sebastian Gniazdowski 0bccd8d86f *install: Fix the file-snippet hook running 2020-02-10 18:44:56 +01:00
Sebastian Gniazdowski df16d33e1f *install: Improve a message and some code 2020-02-10 17:24:07 +01:00
Sebastian Gniazdowski 8ce36e9d8e *install: Don't deliberately resign from Zsh <= 5.0.0 compatibility 2020-02-10 01:17:49 +01:00
Sebastian Gniazdowski 04dab88fba *install: Further improve an old code 2020-02-10 01:14:54 +01:00
Sebastian Gniazdowski 8619a0e02e *install: Improve an old code 2020-02-10 01:13:03 +01:00
Sebastian Gniazdowski 2e7749cc38 *install: A better way to prevent the message 2020-02-10 01:11:39 +01:00
Sebastian Gniazdowski a1b4243a61 *install: Fix an error message appearing 2020-02-10 01:09:08 +01:00
Sebastian Gniazdowski 94eebbac9e *install: Fix handling of non-empty and multi-valued `extract' ice 2020-02-10 00:07:30 +01:00
Sebastian Gniazdowski 3bf2bee132 *install: Issue warning only when no binaries have been found (`extract')
Fixes #230
2020-02-09 04:02:48 +01:00
Sebastian Gniazdowski 78dafd14e9 *install: No warning message when as"null" 2020-02-09 03:56:48 +01:00
Sebastian Gniazdowski d1d4e6da49 *install,*autoload: Exclude YAML files from the completions 2020-02-09 03:56:00 +01:00
Sebastian Gniazdowski f64b9c0f7a *install: FIX – fully empty `extract' ice works 2020-02-07 19:59:46 +01:00
Sebastian Gniazdowski af46ca5658 *install: extract correctly handles multiple files, e.g.: extract='a.zip
b.tar.gz'. The file can have spaces with in – just use the non-breaking
space (RAlt+Space).
2020-02-07 16:36:15 +01:00
Sebastian Gniazdowski a99851d589 *install: `ziextract' – new option --nobkp prevents creating backup 2020-02-07 16:35:10 +01:00
Sebastian Gniazdowski f0c85f05be *install: Remove an ellipsis from a message 2020-02-07 16:09:53 +01:00
Sebastian Gniazdowski fc89753421 *install: All instalation messages end with period 2020-02-07 16:06:39 +01:00
Sebastian Gniazdowski fc716fafce *install: Fix a few bugs with return values 2020-02-07 16:02:07 +01:00
Sebastian Gniazdowski a661f93afa *install: Don't move .svn, .hg directories when doing backup (`extract') 2020-02-07 15:43:49 +01:00
Sebastian Gniazdowski fccd35a7b7 all: FEATURE – New ice `extract' which extracts: a) files with known
extensions, b) extension-less files of known file types (checked with
the `file' command), c) or the listed files. extract'!' will move the
files up one directory level. extract'-' will prevent the archive
removal (upon unpacking). Can be combined, e.g.: extract'-!'.
2020-02-07 15:40:22 +01:00
Sebastian Gniazdowski a21d62e1d6 *install: No blank line during installation of packages 2020-02-07 15:33:59 +01:00
Sebastian Gniazdowski 1f8f697289 *install: Rename the file back from an *.out file so that the remote
timestamp checking can work
2020-02-07 14:26:20 +01:00
Sebastian Gniazdowski b38a34b185 *install: `ziextract' – if a file gets processed at stage 2 of unpacking
then skip possible processing of it at stage 1
2020-02-07 14:01:03 +01:00
Sebastian Gniazdowski 2d7d55902c *install: Uniquify arrays used by `ziextract' 2020-02-07 12:45:23 +01:00
Sebastian Gniazdowski 8e6595aa58 *install: %f → %f%b 2020-02-07 11:43:02 +01:00
Sebastian Gniazdowski 894815867c *install: Drop ZINIT[col-rst] in favor of %f 2020-02-07 11:20:22 +01:00
Sebastian Gniazdowski 055a1e9444 *install: Don't leak a helper function 2020-02-07 09:39:48 +01:00
Sebastian Gniazdowski 825bcf0292 *install: `ziextract' works with IRreGuLaR capitalization of extensions 2020-02-07 09:34:55 +01:00
Sebastian Gniazdowski 95987f742f *install: `zpextract' – --auto doesn't match files that are 2-level deep
This is to prevent extracting of some internal files, some small helper
archives, etc.
2020-02-07 09:31:56 +01:00
Sebastian Gniazdowski 659aa64945 *install: Fix a bug with hook-running for gh-r plugins 2020-02-07 05:28:01 +01:00
Sebastian Gniazdowski 802d43351e *install,*autoload: Nicer flag-checking code – less quoting and braces 2020-02-07 04:41:23 +01:00
Sebastian Gniazdowski 7d30af80ac *install,*autoload: A flag ZINIT[annex-multi-flag:pull-active] that
informs annexes if any new commits are (to be) downloaded
2020-02-07 02:17:16 +01:00
Sebastian Gniazdowski c4f340fec7 *install: `zpextract' – workaround gzip limitations 2020-02-06 23:52:18 +01:00
Sebastian Gniazdowski d1cb96d929 *install: Compare the correct parameter (`zpextract') 2020-02-06 23:51:41 +01:00
Sebastian Gniazdowski b92aad01a9 *install: Correctly handle gzip files and also filenames with colons
(`zpextract')
2020-02-06 23:50:19 +01:00
Sebastian Gniazdowski 4a03fc11b4 *install: Remove a debug print 2020-02-06 21:57:17 +01:00
Sebastian Gniazdowski 6cb642f412 *install: zpextract' – better --auto' multi-stage unpacking 2020-02-06 21:45:39 +01:00
Sebastian Gniazdowski b120d64d3c *install: Unpack plain 7z files (`zpextract') 2020-02-06 21:42:39 +01:00
Sebastian Gniazdowski a3ec8a627f *install: Recognize .7z and .tar.7z files in --auto extension searching 2020-02-06 21:41:33 +01:00
Sebastian Gniazdowski ebdcefb8c4 *install: `zpextract' – avoid double extracting the archives; look for
one more file name
2020-02-06 21:12:00 +01:00
Sebastian Gniazdowski 06a916c14f *install: Work around an xz limitation 2020-02-06 21:04:31 +01:00
Sebastian Gniazdowski 722191695f *install: Recognize also xz and 7zip in --auto (`zpextract') 2020-02-06 21:03:35 +01:00
Sebastian Gniazdowski db39711e94 *install: Better atclone'' ice testing (for value) 2020-02-06 21:00:37 +01:00
Sebastian Gniazdowski 47aa19ecf8 *install: FEATURE: zpextract's --auto mode now also uses the `file' tool
to search for the archives – no extension is needed! Use this e.g.: with
an id-as=a-word snippets to have the target file (i.e.: `a-word`)
correctly extracted.
2020-02-06 20:28:26 +01:00
Sebastian Gniazdowski 760108c8fa *install: Support bz2 and xz archives (`ziextract') 2020-02-06 20:24:47 +01:00
Sebastian Gniazdowski d05897c0b2 *install: zpextract' to recognize gzip' type, not only `gz' 2020-02-06 20:23:15 +01:00
Sebastian Gniazdowski 0b870c0fa9 *install: Fix a bug in ziextract' related to its --move' option 2020-02-06 20:06:33 +01:00
Sebastian Gniazdowski 10ad2ca8e9 *install: `ziextract' to detect also *.tar files 2020-02-06 19:42:47 +01:00
Sebastian Gniazdowski 643dcd9696 *install: FEATURE – ziextract' now has --auto' option → searches for
the file to extract on its own, by extension! Just invoke: ziextract
--auto in an atclone/atpull handler.
2020-02-06 18:42:57 +01:00
Sebastian Gniazdowski 47b1dd357b *install: Not all messages should be unsilenced 2020-02-03 20:25:34 +01:00
Sebastian Gniazdowski 28af08cf1f *install,*autoload: Further no -q/--quiet silencing + color for message 2020-02-03 17:22:57 +01:00
Sebastian Gniazdowski d035bbec07 *install,*autoload: Exclude markdown files from the completions glob 2020-01-27 17:31:52 +01:00
Sebastian Gniazdowski 416aa47e6c *install: Fix the completion installation 2020-01-27 13:36:45 +01:00
Sebastian Gniazdowski 23a04b7725 *install: Skip the completions message if no completions were detected 2020-01-26 13:38:18 +01:00
Sebastian Gniazdowski 03a52f3e07 *install: FEATURE: No more messages for each installed completion
– count of the files is shown and they are put into INSTALLED_COMPS
array
2020-01-26 13:08:21 +01:00
Sebastian Gniazdowski 9dde5f9907 all: Switch the vim marks to more safe [[[ and ]]] 2020-01-22 03:17:48 +01:00
Sebastian Gniazdowski df91f499aa *install: Support the Patch-Dl annex as requirement in the packages 2020-01-22 00:23:48 +01:00