1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00
Commit graph

11763 commits

Author SHA1 Message Date
zerkous
a6139bb0a9 49154: clarify status on exec failure 2021-09-06 14:28:54 -07:00
Marlon Richert
8ffcdc4824 49292: Src/Zle/complist.c: turn off colors before clearing to end of line 2021-09-06 14:22:58 -07:00
Marlon Richert
a675d058db 49378: skip check for collision of aliases and functions when NO_EXEC 2021-09-06 14:16:18 -07:00
Bart Schaefer
a36f4228d3 49282: missed ChangeLog entry in previous commit 2021-09-06 14:03:33 -07:00
Bart Schaefer
988688d23d 49282: set $0 correctly when calling functions from hooks 2021-09-06 14:02:20 -07:00
Bart Schaefer
d165d408a0 49266: fix segfault on metacharacters in long job texts 2021-09-06 13:55:44 -07:00
Marlon Richert
1508dc7486 49218: run-help filters cmd_args before calling run-help-<command> 2021-09-06 13:47:10 -07:00
Bart Schaefer
35c87f0b3b unposted (cf. 49202 and 49217): insertlastword ignores blank/missing history entries when repeating 2021-09-06 13:33:40 -07:00
Bart Schaefer
7000b04e76 49196: gdbm keys not present in the database appear unset in tied hashes 2021-09-06 13:27:01 -07:00
Marlon Richert
ca2e71e0eb 48969: fix for "zle -N" completion 2021-09-06 12:48:53 -07:00
Bart Schaefer
a31fd3077d 48888: improve doc for $$ and $PPID, add fail test for PPID readonly-ness 2021-09-06 12:46:28 -07:00
Bart Schaefer
c0e5b212f3 48832: try _gnu_generic first 2021-09-06 12:20:27 -07:00
Shohei YOSHIDA
c843af635a 49343: Fix file name completion of GNU digest utilities 2021-09-04 13:28:26 +02:00
Oliver Kiddle
b60bab1cc1 49345: fix git file completion for paths starting with ../ 2021-09-04 13:11:07 +02:00
Oliver Kiddle
64befeb4ca 49327: complete for new git maintenance, for-each-repo, sparse-checkout and bugreport commands 2021-08-29 17:12:56 +02:00
Oliver Kiddle
a9386df558 49319: completion options update 2021-08-29 17:08:34 +02:00
Oliver Kiddle
12676c0f9f 49317: cleanup inappropriate use of {...} specs with _arguments or _alternative 2021-08-29 17:05:39 +02:00
Oliver Kiddle
f529d54f43 49316: add (-.) glob qualifier to globs where only files are applicable 2021-08-29 17:00:05 +02:00
Oliver Kiddle
76de0b05da 49315: list units in brackets at the end of group descriptions 2021-08-29 16:55:25 +02:00
Peter A. Castro
e872a7cec9 users/26982, subset not already integrated: use standard #include format 2021-08-28 21:38:23 +01:00
Peter Stephenson
e5cd2dd980 49290: Replace stdio for buffered shell input.
The previous method allowed memory management to interact with signal
handlers, causing occasional crashes on some system.

Instead, use a simple pre-allocated buffer and raw system calls.
2021-08-27 09:36:06 +01:00
Marlon Richert
1a78e46564 49272: Set $COLUMNS in _call_program to ensure cached command output is sufficiently wide 2021-08-27 09:47:32 +02:00
Oliver Kiddle
51eaf66bea unposted (based on Marlon: 49273): add -x to local completion 2021-08-27 09:42:11 +02:00
Oliver Kiddle
46c502c380 49309: update the strace completion through strace 5.13 2021-08-27 09:12:29 +02:00
Oliver Kiddle
b8d3787bac 49306: fix file completion for the second parameter to losetup 2021-08-27 09:10:31 +02:00
Štěpán Němec
5ef55de65e 49234: add missing options in python completion 2021-08-27 08:51:32 +02:00
Peter Stephenson
0a80579ed1 49307 with doc update: POSIX_TRAPS fix.
With POSIX_TRAPS set, an ignored signal stays ignored when entering
a subshell.
2021-08-26 09:46:39 +01:00
Peter Stephenson
4a9437317f 49297 (quoting amended): error message in files module.
If ENONENT it could be the other argument that doesn't exist, so check.
2021-08-24 19:21:53 +01:00
DCsunset
cd89e1937d github #78: Fix completions in _pandoc 2021-08-24 02:16:45 -05:00
Oliver Kiddle
78961f8870 49268: use an empty string search to find matches for info --index-search= completion
Also include info output to the right of " -- " for further info node
completion matches and fix quoting of a blank argument to _call_program.
2021-08-16 02:44:49 +03:00
Oliver Kiddle
71ff799b3c 49160: fix quoting for xmllint --pretty completion 2021-08-16 02:44:22 +03:00
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