1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00
Commit graph

11782 commits

Author SHA1 Message Date
Daniel Shahaf
1449f81183 users/26734: docs: read: Notate the parameter name argument as optional. 2021-08-14 14:07:08 +00:00
Peter Stephenson
daa208e907 49269: Fix "[ ! -o ]".
This should detect "-o" as non-empty string; "-a" was alrady working.
Update the test.
2021-08-10 09:19:32 +01:00
Stavros Ntentos
765bc14701 github #77: Improve subl completions for Sublime Text v4 2021-07-30 00:44:28 -05:00
Jun-ichi Takimoto
b4dff9a8e8 49211: _typeset: correctly set return value
do not include '-' in onopts so that 'functions -- <TAB>' works.
2021-07-30 01:10:24 +09:00
Erik Paulson
f8ec33c453 49029: Prevent shell from sending duplicate signals with MONITOR 2021-07-23 21:08:13 +01:00
Peter Stephenson
50dc7f2913 49182: Turn off correction inside command substition.
In "A=$(PWD)" we dont't have the information to correct at the level of the
PWD subcommand, so don't try to do it as this causes a crash.
2021-07-23 20:27:38 +01:00
Eric Cook
d9e5ef0204 49147: fix completion of linux kernel modules 2021-07-19 02:16:35 -04:00
Jun-ichi Takimoto
9b3a292410 49166: fix coredump in ${name:offset:length} with ill-formatted length 2021-07-19 09:13:03 +09:00
Oliver Kiddle
6e10067ffd 49158: remove superfluous function definitions 2021-07-11 00:32:34 +02:00
Oliver Kiddle
e9203d04aa 49157: fix uses of literal % characters in completion descriptions 2021-07-10 23:50:50 +02:00
Oliver Kiddle
35f9585cd1 49156: make wider use of the convention of square brackets for defaults 2021-07-10 23:44:58 +02:00
Oliver Kiddle
efec6bbdb5 49151: remove commas erroneously included in _arguments exclusion lists 2021-07-09 00:32:37 +02:00
Oliver Kiddle
e6fdd35a83 49150: consistently use singular form for headings on completion match groups 2021-07-09 00:23:52 +02:00
Oliver Kiddle
bffe543142 49149: add specific values in completion after ssh-keygen -b depending on the key type 2021-07-09 00:14:02 +02:00
Max Voit
f1d4a07845 49153: cut off .lua extension from module files that occurs when using lmod for module 2021-07-08 23:51:36 +02:00
Suraj N. Kurapati
d634a3d333 49128 (github #76): vcs_info-examples: optimize +vi-git-untracked()
Speed up the prompt on large and/or deep working directories by
stopping grep(1) as soon as it finds a single match, with `-q`.
Also, correct the regexp by adding a ^ anchor and increase its
specificity by accounting for the space in Porcelain Format v1.

Previously, +vi-git-untracked() waited for grep(1) to find all
matches of untracked files, redirecting them away to /dev/null,
before finally concluding that untracked files do indeed exist.

With this patch, I see 4x speedup on a large Git-enabled $HOME:

    $ time (git status --porcelain | wc -l)
    212
    0.01s user 0.02s system 0% cpu 9.021 total

    $ time (git status --porcelain | grep '??' &>/dev/null)
    0.01s user 0.02s system 0% cpu 12.294 total

    $ time (git status --porcelain | grep -q '^?? ' 2>/dev/null)
    0.01s user 0.01s system 0% cpu 3.097 total

Note that `-q` for grep(1) is in POSIX (IEEE Std 1003.1-2017):
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html

See discussion https://www.zsh.org/mla/workers/2021/msg01354.html
2021-07-06 01:56:07 +00:00
Peter Stephenson
d293c12de6 49102: Ignore dynamic directory name failure if NO_EXEC 2021-06-28 15:42:01 +01:00
Peter Stephenson
2912139261 48096: Update Sourceforge links to https://zsh.sourceforge.io/ 2021-06-22 11:29:55 +01:00
dana
c6603669a2 48920: _pgrep: Address issues related to -f completion 2021-06-14 22:19:38 -05:00
dana
32450b7c81 48920: _pgrep: Clarify -x description 2021-06-14 22:18:16 -05:00
Bart Schaefer
d1c91776aa unposted (cf. 49077): Clarify unset example 2021-06-14 10:03:32 -07:00
Bart Schaefer
5b4a1626c2 49069: literal interpretation of subscripts for unset of array/hash elements 2021-06-13 16:30:06 -07:00
Bart Schaefer
667901b6ba 49065: remove bad cross-reference 2021-06-13 12:06:31 -07:00
Akinori MUSHA
bd328a2a9c 48942: Let EDITOR invoked by edit-command-line know it's a zsh script 2021-06-03 00:28:06 +02:00
Oliver Kiddle
978c4907b6 48954: avoid crash in reverse-menu-complete from menuselect without 'menu' in $compstate[insert] 2021-06-03 00:22:37 +02:00
Oliver Kiddle
f4b2a03625 48952: expand octal codes for record separators in perl completion 2021-06-03 00:12:54 +02:00
Oliver Kiddle
a21c0b334c 48938: remove vim fold and option markers in completions 2021-06-03 00:09:06 +02:00
Oliver Kiddle
31d9ff53ce 48939: update completion of options for rsync 3.2.3 2021-06-03 00:01:53 +02:00
Oliver Kiddle
0c14732cf7 48897: completion updates for DragonFly 6.0 and OpenBSD 6.9 2021-05-22 00:05:54 +02:00
Marlon Richert
891d361572 48891: Fix pgrep/pkill -f completion
Old completion produced false positives & took too much screen space.
2021-05-21 23:50:24 +02:00
Marlon Richert
e732073415 48864: Improve extra-verbose completion display strings for array parameter values 2021-05-21 23:45:26 +02:00
Daniel Shahaf
a23f19bfbd 48601/0005: zmathfuncdef: Fix the workers/48147 return status / 'set -e' bug.
Not tested.
2021-05-18 02:01:13 +00:00
Daniel Shahaf
4202c0bbe3 48601/0004: docs: return: Give examples of using arithmetic evaluation. 2021-05-18 02:01:13 +00:00
Daniel Shahaf
b992d91059 48601/0003: docs: functions -M: Add a subheading and index entries. 2021-05-18 02:01:13 +00:00
Daniel Shahaf
f571aff1b2 48601/0002: docs: functions -M: Document the return status / result interdependency gotchas (cf. 48147). 2021-05-18 02:01:13 +00:00
Daniel Shahaf
6913eb6776 48601/0001: docs: functions -M: Move an example to be near the specification of the relevant flag 2021-05-18 02:01:13 +00:00
Daniel Shahaf
492c388e1d 48594 (plus an "F:" line corresponding to the question there): New tests for functions -t / functions -T 2021-05-18 01:57:06 +00:00
Marlon Richert
7383baf4cf 48853: improved handling of theme resets when changing prompt themes, especially for theme preview 2021-05-16 21:18:06 -07:00
Bart Schaefer
338af5ea0f 48860: remove mention of bugs that have been fixed 2021-05-16 21:11:45 -07:00
Bart Schaefer
cf5c4828d1 48857: declare "volatile" all globals that may be modified by signal handlers 2021-05-16 19:51:11 -07:00
Jörg Sommer
93b4ee524d users/26649: add zstyle for rake targets without description
`rake -T` shows only these targets having a description. But it might be
useful to see all. Allow this with the zsytle setting:

zstyle :completion::complete:rake:argument-rest:targets extended true
2021-05-17 00:17:25 +02:00
Oliver Kiddle
61e4e43ac9 48783: update ansible completion to 2.10.8 2021-05-16 21:23:15 +02:00
Oliver Kiddle
41071eaed7 48623: update options in openssh completion to version 8.6 2021-05-16 20:41:55 +02:00
Mikael Magnusson
0b3aa73af1 _timeout: Fix wrong syntax 2021-05-16 17:32:09 +02:00
Han Pingtian
8bdbc61497 33465: use prctl() for "jobs -Z" where available
Bart apologizes for waiting 7 years to apply this change.
2021-05-15 14:23:28 -07:00
Vincent Lefevre
4fa4dcad17 48723: locale-safe recognition of "Inf" and "NaN" constants in math 2021-05-15 14:11:49 -07:00
Peter Stephenson
db36149006 users/26742: break out of surrounding shell loops when exit is called from an exit hook 2021-05-15 13:59:17 -07:00
Bart Schaefer
e4bd6dc818 users/26736: avoid infinite loop in getbyte from exit hook 2021-05-15 13:51:39 -07:00
Bart Schaefer
cae7eb7684 48560: add new test file missed on original commit 2021-05-15 13:46:20 -07:00
Bart Schaefer
34a8fecf7b 48810: fix potential name clash in test case for autoloading 2021-05-15 13:45:14 -07:00