summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemnodime <Semnodime@users.noreply.github.com>2021-01-22 16:09:52 +0100
committerOliver Kiddle <opk@zsh.org>2021-02-07 00:25:24 +0100
commited160f268a45ddf9bfbad27c6f93c90263d56b17 (patch)
tree2fd634bc891b018e87243c4811abd78dfcadf191
parent645c89af6d2bda2e02a02656e1af70f9d99e0355 (diff)
downloadzsh-ed160f268a45ddf9bfbad27c6f93c90263d56b17.tar.gz
zsh-ed160f268a45ddf9bfbad27c6f93c90263d56b17.zip
github #72: Fix unix command lldb tab-completion
The --arguments are space (` `) separated, not equal-sign (`=`) separated. lldb --correct c_arg --wrong=w_arg
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_lldb24
2 files changed, 15 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 436457a01..b1f98d233 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2021-02-07 Oliver Kiddle <opk@zsh.org>
+ * github #72 (tweaked): Semnodime: Completion/Unix/Command/_lldb:
+ fix unix command lldb tab-completion, args are space separated
+
* gitlab !16: aaaz <i1460889@mvrht.net>:
Completion/Unix/Command/_transmission: allow spaces between short
options and their parameters in transmission completion
diff --git a/Completion/Unix/Command/_lldb b/Completion/Unix/Command/_lldb
index 0426f69f2..eae8e1d3a 100644
--- a/Completion/Unix/Command/_lldb
+++ b/Completion/Unix/Command/_lldb
@@ -6,12 +6,12 @@ typeset -a opts args
[[ $EUID = 0 || $_comp_priv_prefix[1] = sudo ]] && opts=( -a )
args=(
- '*'{-o+,--one-line=}'[run one-line lldb command after loading executable]:lldb command: '
- '*'{-s+,--source=}'[run lldb commands from a file after loading executable]:file:_files'
- '*'{-O+,--one-line-before-file=}'[run one-line lldb command before loading executable]:lldb command'
- '*'{-S+,--source-before-file=}'[run lldb commands from a file before loading executable]:file:_files'
- '(-k --one-line-on-crash)'{-k+,--one-line-on-crash=}'[run one-line lldb command if target crashes in batch mode]:lldb command'
- '(-K --source-on-crash)'{-K+,--source-on-crash=}'[run lldb commands from a file if target crashes in batch mode]:file:_files'
+ '*'{-o+,--one-line}'[run one-line lldb command after loading executable]:lldb command: '
+ '*'{-s+,--source}'[run lldb commands from a file after loading executable]:file:_files'
+ '*'{-O+,--one-line-before-file}'[run one-line lldb command before loading executable]:lldb command'
+ '*'{-S+,--source-before-file}'[run lldb commands from a file before loading executable]:file:_files'
+ '(-k --one-line-on-crash)'{-k+,--one-line-on-crash}'[run one-line lldb command if target crashes in batch mode]:lldb command'
+ '(-K --source-on-crash)'{-K+,--source-on-crash}'[run lldb commands from a file if target crashes in batch mode]:file:_files'
'(-b --batch)'{-b,--batch}'[run commands from -s -S -o -O and quit]'
'(-Q --source-quietly)'{-Q,--source-quietly}'[suppress output from -s, -S, -o or -O]'
'(-e --editor)'{-e,--editor}'[open source files using "external editor" mechanism]'
@@ -19,21 +19,21 @@ args=(
'(-X --no-use-colors)'{-X,--no-use-colors}'[do not use colors]'
'(-d --debug)'{-d,--debug}'[print extra information for debugging itself]'
'(-r --repl)'{-r,--repl}'[run lldb in REPL mode]'
- '(-l --script-language)'{-l+,--script-language=}'[use the specified scripting language]:language:(Python Perl Ruby Tcl)'
+ '(-l --script-language)'{-l+,--script-language}'[use the specified scripting language]:language:(Python Perl Ruby Tcl)'
- info
'(-)'{-h,--help}'[print the usage information]'
'(-)'{-v,--version}'[print the current version number]'
'(-)'{-P,--python-path}'[print path to the lldb.py file]'
- file
- '(-f --file)'{-f+,--file=}'[specify executable file to debug]:executable:_files -g "*(-*)"'
- '(-a --arch)'{-a+,--arch=}'[use the specified architecture]:arch'
- '(-c --core)'{-c+,--core=}'[specify core file to open]:core file:_files -g "*core*(-.)"'
+ '(-f --file)'{-f+,--file}'[specify executable file to debug]:executable:_files -g "*(-*)"'
+ '(-a --arch)'{-a+,--arch}'[use the specified architecture]:arch'
+ '(-c --core)'{-c+,--core}'[specify core file to open]:core file:_files -g "*core*(-.)"'
'*::executable and arguments:->exe_args'
- name
- '(-n --attach-name)'{-n+,--attach-name=}"[attach to the named process]: :_process_names $opts"
+ '(-n --attach-name)'{-n+,--attach-name}"[attach to the named process]: :_process_names $opts"
'(-w --wait-for)'{-w,--wait-for}'[wait for the specified process to launch]'
- pid
- '(-p --attach-pid)'{-p+,--attach-pid=}'[attach to the specified process]:pid:_pids'
+ '(-p --attach-pid)'{-p+,--attach-pid}'[attach to the specified process]:pid:_pids'
)
_arguments -C -s -S : $args && return 0