Sebastian Gniazdowski
dffafb2da7
Further undefensive the code.
2020-07-08 23:29:40 +02:00
Sebastian Gniazdowski
0c8b4a1280
Remove an over-defensive code.
2020-07-08 23:21:38 +02:00
Sebastian Gniazdowski
1e944dd031
Remove an empty line.
2020-07-08 19:26:34 +02:00
Sebastian Gniazdowski
e03c38c57f
Reformat the color-hash definition into multiple columns.
2020-07-08 19:25:13 +02:00
Sebastian Gniazdowski
bad2b97873
Tweak the colors (add new ones: var, glob, cmd).
2020-07-08 19:20:10 +02:00
Sebastian Gniazdowski
a3dbe5cbfe
silent'' mutes the `Snippet not loaded' error message.
2020-07-08 18:02:33 +02:00
Sebastian Gniazdowski
2d4dc4f9da
Remove an unneeded unset of subscribe''.
2020-07-08 17:17:19 +02:00
Sebastian Gniazdowski
f7c343bf7a
zinit: Don't load wait'' from disk.
2020-07-08 15:46:06 +02:00
Sebastian Gniazdowski
cb777034fc
zinit: Mute a warncreateglobal warning.
2020-07-08 15:13:52 +02:00
Sebastian Gniazdowski
27d1b66ab2
FIX: prevent interactive double-installation of wrongly entered plugins.
2020-07-08 14:44:14 +02:00
Sebastian Gniazdowski
5d2084234a
zinit: Fix the loading of disk ices.
2020-07-08 11:18:15 +02:00
Sebastian Gniazdowski
4d8f292812
zinit: Fix +zinit-message.
2020-07-07 19:27:53 +02:00
Sebastian Gniazdowski
ad324236da
Don't add unnecessary entries to path.
2020-07-06 10:00:05 +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
ec8a0a5a9f
zinit: A small cleanup.
2020-07-05 15:12:52 +02:00
Sebastian Gniazdowski
ce53848800
Fix some comments.
2020-07-04 21:23:15 +02:00
Sebastian Gniazdowski
7a9151e886
Remove @ from ${(@on)….
2020-07-04 21:21:27 +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
4236d9769e
Work in progress – the major cleanup in the hook-related code.
2020-07-04 06:20:06 +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
c95c0cc5a9
zinit,autoload: One global variable less
2020-06-28 13:57:32 +02:00
Sebastian Gniazdowski
1cad6df5e5
zinit: FEATURE – ability to invoke autoloaded function: autoload'#fun'
...
– by prefixing it with the hash. So that it's possible to invoke e.g.:
zinit autoload'#manydots-magic' for knu/zsh-manydots-magic
instead of:
zinit autoload'manydots-magic' atload'manydots-magic' for \
knu/zsh-manydots-magic
2020-06-25 17:22:40 +02:00
Sebastian Gniazdowski
e53c6878b9
zinit: Fix indentation
2020-06-20 21:39:19 +02:00
Sebastian Gniazdowski
3055bd8e8c
zinit,install: Update the colors
2020-06-20 21:38:08 +02:00
Sebastian Gniazdowski
25a13f75e4
zinit: Improve +zinit-message
2020-06-20 17:13:33 +02:00
Sebastian Gniazdowski
754aae4c27
zinit: Improve +zinit-message
2020-06-20 17:11:30 +02:00
Sebastian Gniazdowski
6d8cb156a4
zinit: Improve +zinit-message
2020-06-20 16:58:48 +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
a0cdf6b5c0
zinit,install: Better messages
2020-06-19 14:17:55 +02:00
Sebastian Gniazdowski
45a908ec41
zinit: Fix the is-snippet condition #362
2020-06-18 16:57:55 +02:00
Sebastian Gniazdowski
0729a2414a
zinit: Try to properly implement loading of disk ices #362 , #363 , #364
2020-06-17 17:16:25 +02:00
Sebastian Gniazdowski
440d847aa5
Revert "zinit: Try to properly implement the loading of the disk ices #363 "
...
This reverts commit 59a651020c .
Issues #362 , #363 , #364
2020-06-17 17:09:36 +02:00
Sebastian Gniazdowski
dd2825b7c7
zinit: Improve *get-object-path #363 , #364
2020-06-16 18:44:16 +02:00
Sebastian Gniazdowski
59a651020c
zinit: Try to properly implement the loading of the disk ices #363
2020-06-16 18:27:35 +02:00
Sebastian Gniazdowski
82afb3981d
Revert "zinit: Correctly load the disk ices"
...
This reverts commit ca6083a64d .
2020-06-16 17:56:43 +02:00
Sebastian Gniazdowski
15b118144e
zinit: Improve *any-to-user-plugin
2020-06-14 16:12:48 +02:00
Sebastian Gniazdowski
ca6083a64d
zinit: Correctly load the disk ices
2020-06-13 08:49:58 +02:00
Sebastian Gniazdowski
e872b50c18
zinit: Change syntax
2020-06-13 08:47:38 +02:00
Sebastian Gniazdowski
4de9820397
zinit: Restore proper hook calling for plugins
2020-06-13 06:50:10 +02:00
Sebastian Gniazdowski
73ebeb5dc5
zinit: Use the snippet shorthand URLs without redirections
2020-06-13 02:56:06 +02:00
Sebastian Gniazdowski
b684c3f8af
zinit: Correct option computation
2020-06-12 22:48:03 +02:00
Sebastian Gniazdowski
b9daefeaff
zinit,*autoload: FEATURE – new options to `update': -s/--snippets and
...
-l/--plugins – they're limiting the `update --all' to only plugins or
snippets. Example:
zinit update --plugins
Works also with -p/--parallel.
2020-06-12 22:35:30 +02:00
Sebastian Gniazdowski
9db192db79
zinit: Alternate syntax
2020-06-11 13:55:19 +02:00
Sebastian Gniazdowski
0ff0c7855c
Revert "all: Alternate syntax"
...
This reverts commit 611aa3f5e6 .
2020-06-10 18:58:11 +02:00
Sebastian Gniazdowski
4bf80a891b
zinit: Fix has'' ice #352
2020-06-10 18:16:00 +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
9ff614d1a7
zinit: Add the missing pullopts'' ice
2020-06-05 16:55:51 +02:00
Sebastian Gniazdowski
7910e244bd
zinit: Feature – allow multiple has'' elements – all commands required
...
Issue #351
2020-05-30 17:26:46 +02:00
Sebastian Gniazdowski
2be7544d59
zinit: Add $ZPFX/usr/{sbin,bin} to $path
2020-05-27 01:30:37 +02:00
Sebastian Gniazdowski
1a4d1c938e
zinit: Feature: A new function `@autoload' which is an extension of the
...
plugin standard. It allows plugins to autoload any functions without
extending $fpath and with the rename feature, e.g.:
@autoload function-file-A → my-function \
funB '->' funC
The syntax is the same as in autoload'' ice.
2020-05-27 01:07:39 +02:00
Sebastian Gniazdowski
37c3f75b51
zinit: Filter out -- from the arguments of autoload
2020-05-20 08:49:21 +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
10596f3db4
zinit: FEATURE – autoload'funA -> funB' to load/rename funA as funB
2020-05-15 10:50:20 +02:00
Sebastian Gniazdowski
f7756b4c26
zinit: autoload'' can *rename* the funs, e.g.: autoload'funA -> funB'
...
to load the function/file `funA' as function `funB'. Also, alternate,
"manual" loading method – via: eval "$(<func-file)" – has been exposed,
to use it, precede the ice with exclamation mark, i.e.: autoload'!funA'.
2020-05-15 10:37:53 +02:00
Sebastian Gniazdowski
fedd94db2d
zinit: Update color palette
2020-05-15 05:41:39 +02:00
Sebastian Gniazdowski
2e3c1a476e
zinit.zsh: Update color palette
2020-05-15 05:36:48 +02:00
Sebastian Gniazdowski
1cfc98ba34
zinit: Update color palette
2020-05-15 05:33:12 +02:00
Sebastian Gniazdowski
2212b2e214
zinit: Update color palette
2020-05-15 05:28:06 +02:00
Sebastian Gniazdowski
ffca5f8cc5
zinit: Add a color to a message
2020-05-14 14:09:36 +02:00
romkatv
2b02f17592
hide internal function arguments from sourced scripts
...
When manually sourcing a file from `.zshrc`, `$@` is empty during
the evaluation of the file. However, when sourcing the same file
via `zinit snippet`, `zinit light` or `zinit load`, `$@` are those
of the internal `zinit` function that happens to invoke `source`.
This PR sets `$@` to empty before sourcing scripts to make sourcing
of files via `zinit` consistent with manual sourcing.
Test case:
% cat ~/.zshrc
source ~/.zinit/bin/zinit.zsh
source ~/plugin.zsh
zinit snippet ~/plugin.zsh
% cat ~/plugin.zsh
print -lr -- start "$@" end
Without this commit:
% zsh
start
end
start
/home/romka/plugin.zsh
end
With this commit:
% zsh
start
end
start
end
Motivation:
Some zsh scripts allow additional arguments to be passed when they
are being sourced.
source ~/plugin.zsh foo bar
Sourcing such scripts via `zinit` is currently impossible. It would
be perfect if `zinit` allowed custom arguments to be passed to
sourced scripts. This PR doesn't go that far but at least it allows
passing no arguments.
2020-05-13 09:42:37 +02:00
Sebastian Gniazdowski
726aa8ea19
*additiona: FEATURE – ability to substitute stringA -> stringB in plugin
...
source body before executing by subst'A -> B'. Work also for any nested
`source' commands. Example – rename the dl'' ice into a dload'' ice in
the Patch-Dl annex:
zi subst"dl'' -> dload''" for zinit-zsh/z-a-patch-dl
2020-05-12 16:09:03 +02:00
Sebastian Gniazdowski
7528ac820b
zinit: Three new colors
2020-05-12 14:54:45 +02:00
Sebastian Gniazdowski
391f25e949
zinit: Create zinit-additional.zsh
2020-05-12 14:47:03 +02:00
Sebastian Gniazdowski
688fef86ac
zinit: Silence warnings from unfunction
2020-05-12 14:29:04 +02:00
Sebastian Gniazdowski
d828a87e9b
zinit: Preliminary support for substitutions
2020-05-11 11:36:28 +02:00
Sebastian Gniazdowski
fcff4a8f17
zinit: FEATURE – a new ice autoload'' which invokes `autoload -Uz …' on
...
the given files/functions. Example – a plugin that converts cd ... into
cd ../..:
zinit autoload'manydots-magic' atload'manydots-magic' for \
knu/zsh-manydots-magic
2020-05-10 13:29:28 +02:00
Sebastian Gniazdowski
f124600b5d
zinit: Fix autoload -w
2020-05-10 11:35:53 +02:00
Sebastian Gniazdowski
1fd93ff28e
zinit: Update Zle hooks list
2020-05-10 05:34:21 +02:00
Sebastian Gniazdowski
bb41c7986a
zinit: FEATURE – a new ice opts'' which takes options to sticky-set
...
during sourcing of the plugin. This means that thee options will be also
set for all of the *functions* that the plugin defines – during their
execution. The option list is space separated.
2020-05-09 18:55:42 +02:00
Sebastian Gniazdowski
a6f6b8bbfc
Revert "zinit: Increase noaliases-option handling correctness"
...
This reverts commit 0f81a7684d .
Issue #331
2020-05-09 18:02:20 +02:00
Sebastian Gniazdowski
0f81a7684d
zinit: Increase noaliases-option handling correctness
2020-05-09 16:22:17 +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
788ca4989b
zinit: Remove unneeded spaces
2020-05-09 12:28:07 +02:00
Sebastian Gniazdowski
9004dfa4f8
zinit: Increase the length of the underscore prefix from __ to ___ #329
2020-05-08 21:18:53 +02:00
Sebastian Gniazdowski
eb825f6fea
zinit: Hide three functions' local variables with `__...' prefix #329
2020-05-08 20:46:52 +02:00
Sebastian Gniazdowski
ad9ece5331
all: Extend vim modeline
2020-05-06 14:34:34 +02:00
Sebastian Gniazdowski
930d12ef99
zinit: Change color
2020-05-06 14:30:11 +02:00
Sebastian Gniazdowski
5a420aa3cd
zinit: Use *message in a few places
2020-05-06 14:28:40 +02:00
Sebastian Gniazdowski
da23b0a45e
zinit: Improve *message
2020-05-06 14:27:45 +02:00
Sebastian Gniazdowski
6d4ba4add2
zinit,*install,*autoload: Remove trailing spaces
2020-05-06 14:16:51 +02:00
Sebastian Gniazdowski
3448a1be87
zinit: Include the cloneopts ice in the non-value ice list #312
2020-04-21 21:03:16 +02:00
Sebastian Gniazdowski
ff859ff375
zinit: Resolve the lack of posixargzero on 5.0.2 #310
2020-04-19 18:22:48 +02:00
Sebastian Gniazdowski
a40f7943cd
zinit: Better reloading support
2020-04-18 17:35:04 +02:00
Sebastian Gniazdowski
7ed6ab9dc5
zinit: FEATURE – a function `m' available during loading of the plugin
...
or snippet. It works like `print' with colorizing features – [key] are
replaced with $ZINIT[col-key] values, which are in general colors. You
can define your own $ZINIT keys or use some of the default ones: obj,
obj2, pre, file, uname, pname, keyword, error, success, failure, info,
info2, msg1, msg2, rst. Example: m 'This is a [file]./file/path[rst].'.
You can use this function inside e.g.: atinit'' or atload'', etc.
2020-04-18 17:22:27 +02:00
Sebastian Gniazdowski
afe03d4f08
zinit: Preserve Turbo tasks when reloading, fixes #306
2020-04-17 17:35:26 +02:00
Sebastian Gniazdowski
cacfa35d9e
zinit: Detect lack of datetime module #306
2020-04-17 16:32:56 +02:00
greg
9e785d31ed
zinit: Fix ZSH_CACHE_DIR value
2020-04-17 01:06:16 +02:00
Sebastian Gniazdowski
3a01df8495
zinit: Remove `cloneonly' file
2020-04-16 16:30:19 +02:00
Sebastian Gniazdowski
a4cdccfe3e
zinit: Provide the OMZT entry
2020-04-15 19:18:11 +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
2654046d2e
zinit: Correct PZTM
2020-04-15 18:21:12 +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
e11b9617fb
zinit,*install: Move a snippet to *install
2020-04-15 15:08:26 +02:00
Sebastian Gniazdowski
cd93467743
zinit: Fix a message
2020-04-15 14:38:14 +02:00
Sebastian Gniazdowski
711da6ad54
zinit: Return code 0 #304
2020-04-15 14:23:35 +02:00
Sebastian Gniazdowski
f5b303450a
zinit: Better auto-disable-Turbo support
2020-04-13 19:06:44 +02:00
Sebastian Gniazdowski
3c990cadcb
zinit: Fix the id-as'' ice
2020-04-12 20:07:21 +02:00
Sebastian Gniazdowski
f32505d629
zinit: Feature: An empty id-as'' works like id-as'auto'
2020-04-12 19:56:20 +02:00
Sebastian Gniazdowski
1553e50443
zinit: Remove unneded setopt
2020-04-08 19:42:01 +02:00
Sebastian Gniazdowski
ba51c3e102
zinit: Improve bindmap'' handling #271
2020-04-08 17:13:03 +02:00
Sebastian Gniazdowski
7c142130e5
zinit: Rename functions
2020-04-08 16:12:16 +02:00
Sebastian Gniazdowski
2d0f81dcec
zinit,*autoload: Rearrange functions
2020-04-08 16:11:18 +02:00
Sebastian Gniazdowski
4883ab6a91
zinit: Ensure a source
2020-04-07 19:53:58 +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
5fba601dbe
zinit: Setup param'' earlier
2020-04-07 15:33:00 +02:00
Sebastian Gniazdowski
d325f71d80
zinit: Remove uneeded flag
2020-04-06 18:43:00 +02:00
Sebastian Gniazdowski
d8fd9340f9
zinit: Check param'' first
2020-04-05 18:10:42 +02:00
Sebastian Gniazdowski
8023b04688
zinit: Optimized param'' handling
2020-04-05 18:09:50 +02:00
Sebastian Gniazdowski
dfc95c5f9a
zinit: Optimized param'' handling
2020-04-04 16:33:42 +02:00
Sebastian Gniazdowski
01ac879bcb
zinit: Optimize ices loading
2020-04-03 20:51:07 +02:00
Sebastian Gniazdowski
b61706d03e
zinit: A defensive code in *load-ices
2020-03-24 20:45:06 +01:00
Sebastian Gniazdowski
e4c092fc60
zinit: Handle POSIX_ARG_ZERO
2020-03-24 20:44:33 +01:00
Sebastian Gniazdowski
3073804b97
zinit: Improve *get-object-path
2020-03-24 20:32:20 +01:00
Sebastian Gniazdowski
c0f2a8fbd5
zinit: Store aliases option state
2020-03-22 14:30:28 +01:00
Sebastian Gniazdowski
5ddb033342
zinit: Allow empty colors in *message
2020-03-20 07:08:26 +01:00
Sebastian Gniazdowski
1658cf0f75
zinit: Use *message
2020-03-20 07:05:22 +01:00
Sebastian Gniazdowski
aeab7d7347
zinit: Make *message output unchanged text if given color not found
2020-03-20 07:03:59 +01:00
Sebastian Gniazdowski
2b21ff2a38
Merge /home/sg/zinit
2020-03-20 06:29:49 +01:00
Sebastian Gniazdowski
98f0087647
zinit: Support for the standard's `functions' directory
2020-03-20 06:05:08 +01:00
Sebastian Gniazdowski
f7085df488
zinit: Use emulate in *shadow-autoload
2020-03-20 06:02:52 +01:00
Sebastian Gniazdowski
e7d464de74
zinit: Improve the initialization code
2020-03-19 19:29:51 +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
5eb48e65df
zinit: Move a function
2020-03-13 12:46:45 +01:00
Sebastian Gniazdowski
6826ca9fee
Fix accidental commit
2020-03-13 12:35:31 +01:00
Sebastian Gniazdowski
1f08e3249d
Revert "all: Cleanup"
...
This reverts commit f811bf36f1 .
2020-03-13 12:34:18 +01:00
Sebastian Gniazdowski
3522eb9e98
zinit: Alternate syntax in a few places
2020-03-13 12:31:32 +01:00
Sebastian Gniazdowski
cbe46cde22
zinit: Remove unused options
2020-03-13 12:15:41 +01:00
Sebastian Gniazdowski
6a86ad36fd
zinit: Use *message instead of print
2020-03-12 04:33:49 +01:00
Sebastian Gniazdowski
3eabf8c7d0
zinit: Simplify *setup-params
2020-03-12 04:08:49 +01:00
Sebastian Gniazdowski
90d5ecb9e2
zinit: Uplift *substitute
2020-03-12 04:05:11 +01:00
Sebastian Gniazdowski
40c8319efd
zinit,*side,*autoload: nval ices in single place
2020-03-12 03:50:07 +01:00
Sebastian Gniazdowski
37918cf5fb
zinit,*side,*autoload: Use the single, global ice-list everywhere
2020-03-12 03:39:48 +01:00
Sebastian Gniazdowski
3b443ed53b
zinit: Cleanup of *setup-params
2020-03-12 03:31:02 +01:00
Sebastian Gniazdowski
004a3096d0
zinit: Use extendedglob in *setup-params
2020-03-12 00:38:02 +01:00
Sebastian Gniazdowski
8be528b13a
zinit: emulate instead of setopt
2020-03-12 00:13:16 +01:00
Sebastian Gniazdowski
59a0f74fca
zinit: emulate instead of setopt
2020-03-12 00:12:09 +01:00
Sebastian Gniazdowski
e0ad20cce4
zinit: Small uplift
2020-03-12 00:10:53 +01:00
Sebastian Gniazdowski
1767f30109
zinit: param'' ice allows to define parameters that are to be created
2020-03-12 00:10:06 +01:00
Sebastian Gniazdowski
0f1bf918fa
zinit: Uplift the emulation ices handling
2020-03-12 00:06:43 +01:00
Sebastian Gniazdowski
ad64d4089a
zinit: Set option via emulate
2020-03-11 19:59:18 +01:00
Sebastian Gniazdowski
80711e350f
zinit: Cleanup
2020-03-11 19:58:31 +01:00
Sebastian Gniazdowski
ed9d2381a5
zinit: Use the *message function
2020-03-11 19:45:38 +01:00
Sebastian Gniazdowski
eec282852a
zinit: Replace `print' with the *message function
2020-03-11 19:42:45 +01:00
Sebastian Gniazdowski
7cf349ef15
zinit: Rename the *message function
2020-03-11 19:39:18 +01:00
Sebastian Gniazdowski
d6e707da4f
zinit: A new function *message
2020-03-11 18:06:10 +01:00
Sebastian Gniazdowski
ae1f571f0c
zinit: Improve a message
2020-03-11 16:41:24 +01:00
Sebastian Gniazdowski
0056a7fcac
zinit: Extend error message
2020-03-11 16:38:29 +01:00
Sebastian Gniazdowski
1962e394cc
zinit: Improve a message
2020-03-11 16:37:25 +01:00
Sebastian Gniazdowski
3e8d1edc40
zinit: Warn if a suspected overlap of plugin and an ice occurs
2020-03-11 16:35:08 +01:00
Sebastian Gniazdowski
b057c53c89
zinit: Alternate syntax in a few places
2020-03-11 15:52:59 +01:00
Sebastian Gniazdowski
81b9d3a53a
zinit: Create a global ice-list
2020-03-11 15:51:24 +01:00
Sebastian Gniazdowski
f811bf36f1
all: Cleanup
2020-03-06 11:26:23 +01:00
Sebastian Gniazdowski
ea339b53cf
zinit: Feature - atinit'!…' will be tracked by Zinit
2020-03-06 04:41:23 +01:00
gammafn
0fc5e44c51
shadow-autoload breaks under rcexpandparam
2020-03-06 02:33:09 +01:00
Sebastian Gniazdowski
8e0751d184
*autoload: Better protected -r/--reset option (for `update') and the ice
2020-03-03 13:17:39 +01:00
Sebastian Gniazdowski
451e7139e0
zinit: Fix the object-recognition snippet
2020-03-02 02:50:40 +01:00
Sebastian Gniazdowski
941fcc0e14
zinit: Fix a typo
2020-03-02 02:48:07 +01:00
Sebastian Gniazdowski
0f1bed97f3
zinit: Fix potential plugin/snippet loading problem
2020-03-02 02:45:49 +01:00
Sebastian Gniazdowski
e361f97000
zinit: Fixed snippet-recognition (this time for sure) for passing both…
...
a snippet and a plugin in the same for-syntax command.
Issue #272
2020-03-02 02:24:44 +01:00
Sebastian Gniazdowski
985c57f6e5
zinit: Fix passing github url to load/light #184
2020-03-01 17:11:18 +01:00
Sebastian Gniazdowski
dbd749f28c
zinit: A fixed version of the nicer object-type -recognition snippet
2020-03-01 00:16:43 +01:00
Sebastian Gniazdowski
de249d96a4
zinit: Properly allow the last one in zle-F-series to start new series
2020-02-29 23:39:41 +01:00
Sebastian Gniazdowski
ceaa435355
Revert "zinit: Allow the last one of the zle-F-series to create a new series"
...
This reverts commit 823e3cd3f8 .
2020-02-29 23:38:22 +01:00
Sebastian Gniazdowski
32cd3aa21a
Revert "zinit: More compact and nicer object-type recognition code"
...
This reverts commit b8515056e7 .
2020-02-29 20:10:41 +01:00
Sebastian Gniazdowski
823e3cd3f8
zinit: Allow the last one of the zle-F-series to create a new series
2020-02-28 23:27:03 +01:00
Sebastian Gniazdowski
b8515056e7
zinit: More compact and nicer object-type recognition code
2020-02-28 20:20:58 +01:00
Sebastian Gniazdowski
06880c9b43
zinit: Make *get-object-path respect id-as''
2020-02-28 20:00:44 +01:00
Sebastian Gniazdowski
a3cd138ccf
zinit: typeset ZINIT_TMP
2020-02-28 13:47:56 +01:00
Sebastian Gniazdowski
5dd920fd2f
zinit: Correctly recognize empty wait ice for the non-Turbo installation
2020-02-28 05:10:31 +01:00
Sebastian Gniazdowski
46a03bf311
zinit: Resign of overcautiousness for more performance in scheduler
2020-02-28 05:01:44 +01:00
Sebastian Gniazdowski
9915a6dd2b
zinit: OPTIMIZATION – scheduler performs the hard work only when needed.
...
This should give +20 ms gain per any Turbo object, for a high number
of the objects, like 20.
2020-02-27 23:23:56 +01:00
Sebastian Gniazdowski
0053e309e9
zinit: !!FIX!! – restore Turbo-mode for the non-for syntax
2020-02-27 22:14:46 +01:00
Sebastian Gniazdowski
779ecb5423
zinit: Zsh's greedy matching is non-exhaustive
2020-02-27 20:41:51 +01:00
Sebastian Gniazdowski
909fd69246
zinit: Check for existence of object only, when there's Turbo-like ice
2020-02-27 18:32:45 +01:00
Sebastian Gniazdowski
4a79f8547a
zinit: Uplift scheduler code
2020-02-27 16:31:52 +01:00
Sebastian Gniazdowski
ddc554f8f4
zinit,*autoload: FEATURE - update' will detect a self-update' done in
...
another session and automatically *reload* Zinit right before updating.
Issue #270
2020-02-26 12:42:12 +01:00
Sebastian Gniazdowski
9af32d853d
zinit: Use alternate syntax for the module-recompilation block
2020-02-26 10:31:44 +01:00
Sebastian Gniazdowski
281a644d3f
zinit,*autoload: Add support for reloading Zinit after self-update
...
Issue #270
2020-02-26 10:30:45 +01:00
Sebastian Gniazdowski
e7bed9f49e
zinit: A lighter blue for col-file
2020-02-26 09:22:00 +01:00
Sebastian Gniazdowski
b3afd76061
zinit: A lighter orange for col-msg2
2020-02-26 09:04:49 +01:00
Sebastian Gniazdowski
11859c7122
zinit: Output message, don't just return when no zsh/util, zsh/parameter
2020-02-26 05:38:08 +01:00
Sebastian Gniazdowski
bd93a6e942
zinit: FEATURE – Turbo is now disabled if the plugin isn't installed
...
first. This makes the plugins and snippets be installed without Turbo
mode – i.e.: immediately during the reading of Zshrc and not after
showing the prompt. Use ZINIT[OPTIMIZE_OUT_DISK_ACCESSES]=1 to disable
this feature – this gives ~10 ms out of ~150 ms, e.g.: 144 ms instead
of 154 ms (the time of `zsh -ic exit').
2020-02-26 03:24:44 +01:00
Sebastian Gniazdowski
1ee8ca94d5
zinit: Uplift *load-ices → use of *get-object-path
2020-02-26 00:40:42 +01:00
Sebastian Gniazdowski
08e65c73c4
zinit: Care for the error messages also when loading a snippet
2020-02-25 22:21:06 +01:00
Sebastian Gniazdowski
07fa09b533
zinit: Uplift ↑ *load-plugin + atload'!…' fix
2020-02-25 22:14:31 +01:00
Sebastian Gniazdowski
e73749b0b4
zinit: Call *other-matches instead of running an own globbing
2020-02-25 21:44:28 +01:00
Sebastian Gniazdowski
f21e7a43eb
zinit: *other-matches uplift: a) testable, b) does uniquify, c) lib.zsh,
...
d) nicer quoting and no unneeded braces.
2020-02-25 21:38:23 +01:00
Sebastian Gniazdowski
5c6d25d471
zinit: Make *get-object-path testable: true/false ↔ directory exists/not
2020-02-25 20:50:33 +01:00
Sebastian Gniazdowski
aeac5e2053
zinit: `run' to use the *get-object-path function
2020-02-25 20:49:04 +01:00
Sebastian Gniazdowski
4c23cf2f85
zinit: A new function to get path to the object, plugin or snippet
2020-02-25 20:09:48 +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
25e161109a
zinit: Fix snippet-path computing in `run'
2020-02-25 19:47:28 +01:00
Sebastian Gniazdowski
43b0562745
zinit: Alternate syntax in one place
2020-02-25 19:43:11 +01:00
Sebastian Gniazdowski
51745d7da1
zinit: Always set $ZSH for OMZ snippets, not only for `svn' mode
2020-02-25 18:57:51 +01:00
Sebastian Gniazdowski
9193f062bf
zinit: Further cleanup in *load-snippet
2020-02-25 18:55:45 +01:00
Sebastian Gniazdowski
c4f0c48fcb
zinit: Remove superfluous update-related code from *load-snippet
...
Issue #184
2020-02-25 17:15:30 +01:00
Sebastian Gniazdowski
b00f361825
Revert "Revert "Revert "zinit: Use zselect for a more predictable sleep time"""
...
This reverts commit f8479165e7 .
2020-02-25 14:48:31 +01:00
Sebastian Gniazdowski
ff75e5ab48
zinit: Better formating for a snippet of code
2020-02-21 21:03:37 +01:00
Sebastian Gniazdowski
7ec8eef41d
zinit,*side: Support the --- separated IDs deeper
2020-02-21 19:13:41 +01:00
Sebastian Gniazdowski
f8479165e7
Revert "Revert "zinit: Use zselect for a more predictable sleep time""
...
This reverts commit c404dffe56 .
Issue #267
2020-02-21 18:29:36 +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
709c59c63f
zinit: Correctly recognize annex subcommands
2020-02-21 15:38:53 +01:00
Sebastian Gniazdowski
f4c7a41942
zinit: Fix (#i) comparison
2020-02-21 14:58:55 +01:00
Sebastian Gniazdowski
756728b855
zinit.zsh: Use emulate in *service
2020-02-21 14:57:48 +01:00
Sebastian Gniazdowski
c404dffe56
Revert "zinit: Use zselect for a more predictable sleep time"
...
This reverts commit f6145dff24 .
Issue #267
2020-02-20 19:35:30 +01:00
Sebastian Gniazdowski
e4296dd838
zinit: Fine-grained FEATURE – an empty pick'' ice will result in
...
automatic setting of it to the $id_as:t – i.e.: to the last component of
the ID string. This works only for as"command". Example:
zinit as=command pick for paulirish/git-open
being equivalent to:
zinit as=command pick=git-open for paulirish/git-open
2020-02-20 15:17:41 +01:00
Sebastian Gniazdowski
2e6fc2ab90
zinit: ZINIT_CUR_PLUGIN → ZINIT[CUR_PLUGIN]
2020-02-20 07:31:24 +01:00
Sebastian Gniazdowski
cb673688e5
zinit,*autoload: FEATURE – PARALLEL UPDATE – pass -p/--parallel to
...
`update' to activate. Runs sets of 15 concurrent jobs – to customize,
pass the number, e.g.: zi update -p 20
2020-02-20 04:28:24 +01:00
Sebastian Gniazdowski
6301871d43
zinit,*install: Two assigns in one line
2020-02-13 04:59:48 +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
53746af4cb
zinit: Remove unneeded braces
2020-02-09 03:57:28 +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
c1ac0cdca0
zinit: Improve the module recompilation message
2020-02-01 21:46:01 +01:00
Sebastian Gniazdowski
3510f6e30f
zinit: A more accurate message on the module rebuild
2020-02-01 21:32:49 +01:00
Sebastian Gniazdowski
13eec039f6
zinit: Full module rebuild on recompile request
2020-02-01 21:28:22 +01:00
Sebastian Gniazdowski
946e7b9aa1
zinit: Run make distclean before recompiling the module
2020-02-01 21:21:59 +01:00
Sebastian Gniazdowski
5e0abb7dce
zinit: Fix the PMSPEC assignment
2020-01-29 20:48:27 +01:00
Sebastian Gniazdowski
610ddbab73
zinit: Support new standard's feature: PMSPEC param describing the p-m
...
see: http://zdharma.org/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html#pmspec
2020-01-29 18:06:27 +01:00
Sebastian Gniazdowski
f6145dff24
zinit: Use zselect for a more predictable sleep time
2020-01-29 14:20:37 +01:00
Sebastian Gniazdowski
e10d6894da
zinit: Improve compatibility with ignore_braces; fix a minor bug
2020-01-22 07:47:29 +01:00
Sebastian Gniazdowski
9dde5f9907
all: Switch the vim marks to more safe [[[ and ]]]
2020-01-22 03:17:48 +01:00
Sebastian Gniazdowski
a4420dcc94
zinit: No warncreateglobal in *shadow-zstyle to mute unneeded warnings
2020-01-21 23:44:48 +01:00
Sebastian Gniazdowski
24673d0c9e
zinit: Fix a minor snippet problem investigating the major problem #247
...
and #248
2020-01-21 15:44:30 +01:00
Sebastian Gniazdowski
89f90ea8c5
zinit: Fix a comment
2020-01-21 15:44:30 +01:00
Sebastian Gniazdowski
905ef877bb
all: Bump the year in copyright notice
2020-01-20 10:22:18 +01:00
Sebastian Gniazdowski
8e8f4efdf9
zinit: Improve bindmap'' handling
2020-01-20 06:56:44 +01:00
Sebastian Gniazdowski
930ad24d0a
zinit: Feature: if a bindmap'' starts with !, then the rhs is a widget
...
i.e.: bindmap'!"^ " -> magic-space' changes the widget bound, while
bindmap'^R -> ^T" changes the combination bound.
2020-01-20 06:49:42 +01:00
Sebastian Gniazdowski
51dc23108d
zinit: Improve bindmap handling
2020-01-20 06:42:29 +01:00
Sebastian Gniazdowski
a6d3d6c0f4
zinit: Improve bindmap'' handling
2020-01-20 06:28:51 +01:00
Sebastian Gniazdowski
c9d9379731
zinit: Temporarily disable the use of the module to suppress the error
...
messages after the name change
2020-01-19 16:58:40 +01:00
Sebastian Gniazdowski
9894836e43
zinit: Properly initialize ZINIT hash
2020-01-18 13:11:30 +01:00
Sebastian Gniazdowski
47a257e9b7
zinit: Remove a debug print
...
https://github.com/zinit-zsh/z-a-bin-gem-node/issues/5
2020-01-18 13:08:58 +01:00
Sebastian Gniazdowski
86ce8af92f
zinit: Ensure that zinit completion is properly installed
2020-01-18 11:40:02 +01:00
Sebastian Gniazdowski
b68458cf38
zinit: Guard that rm -rf will not delete unwanted files
2020-01-18 11:24:22 +01:00
Sebastian Gniazdowski
6989afc9b2
zinit: Update a comment
2020-01-18 11:23:58 +01:00
Sebastian Gniazdowski
1ca8f6856c
PROJECT RENAME Zplugin → Zinit. Hold your thumbs that everything will
...
work seamlessly.
2020-01-18 10:02:05 +01:00