Compare commits
4 Commits
cd33d3c56c
...
a3e71a5d88
| Author | SHA1 | Date |
|---|---|---|
|
|
a3e71a5d88 | |
|
|
85e041be36 | |
|
|
bb09f70830 | |
|
|
ea4685a96f |
|
|
@ -0,0 +1,28 @@
|
|||
#compdef cgdb
|
||||
# ------------------------------------------------------------------------------
|
||||
# Description
|
||||
# -----------
|
||||
#
|
||||
# Completion script for cgdb (https://github.com/cgdb/cgdb).
|
||||
# Modified from rejected https://github.com/cgdb/cgdb/pull/337/
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
# -------
|
||||
#
|
||||
# * Wu, Zhenyu <wuzhenyu@ustc.edu>
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# cgdb -- <TAB>
|
||||
if ((${${words[1, CURRENT]}[(I)--]})) && [[ ${words[CURRENT]} != -- ]]; then
|
||||
_gdb
|
||||
# cgdb <TAB> or cgdb <TAB> -- or cgdb --<TAB>
|
||||
else
|
||||
_arguments -s \
|
||||
"(- : *)"{-v,--version}"[Print version information and then exit.]" \
|
||||
"(- : *)"{-h,--help}"[Print help (this message) and then exit.]" \
|
||||
-d"[Set debugger to use.]" \
|
||||
-w"[Wait for debugger to attach before starting.]" \
|
||||
--
|
||||
fi
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
# Description
|
||||
# -----------
|
||||
#
|
||||
# Completion script for rubocop 1.65.0 (https://github.com/rubocop/rubocop)
|
||||
# Completion script for rubocop 1.71.0 (https://github.com/rubocop/rubocop)
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
|
|
@ -66,7 +66,9 @@ _arguments \
|
|||
'--only-recognized-file-types[Inspect files given on the command line only if they are listed in configuration]' \
|
||||
'--ignore-parent-exclusion[Prevent from inheriting "AllCops/Exclude" from parent folders]' \
|
||||
'--ignore-unrecognized-cops[Ignore unrecognized cops or departments in the config]' \
|
||||
'--force-default-config[Use default configuration even if configuration files are present in the directory tree]' \
|
||||
'(-s --stdin)'{-s,--stdin}'[Pipe source from STDIN, using FILE in offense reports]: :_files' \
|
||||
'--editor-mode[Optimize real-time feedback in editors, adjusting behaviors for editing experience]' \
|
||||
'(-P --parallel --no-parallel)'{-p,--parallel}'[Use available CPUs to execute inspection in parallel]' \
|
||||
'(-P --parallel --no-parallel)--no-parallel[Execute not parallel]' \
|
||||
'--raise-cop-error[Raise cop-related errors with cause and location]' \
|
||||
|
|
|
|||
Loading…
Reference in New Issue