]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
zsh/coredumpctl: complete argument for --debugger=
authorPaul Seyfert <pseyfert.mathphys@gmail.com>
Tue, 25 Dec 2018 18:30:50 +0000 (19:30 +0100)
committerPaul Seyfert <pseyfert.mathphys@gmail.com>
Tue, 25 Dec 2018 18:30:50 +0000 (19:30 +0100)
This way external commands (i.e. executables in the PATH) are suggested
at --debugger=<TAB>. Upon starting a path (e.g. --debugger=/<TAB> or
--debugger=./<TAB>), filenames of executables are completed.

shell-completion/zsh/_coredumpctl

index cf24f5b361d547e75d64184e42c34ccdcb507e3f..6ed2ca216d2438dea86a0fae256764bcad3748b3 100644 (file)
@@ -39,5 +39,5 @@ _arguments \
     '--no-legend[Do not print the column headers]' \
     {-h,--help}'[Show this help]' \
     '--version[Show package version]' \
-    '--debugger=[Use the given debugger]' \
+    '--debugger=[Use the given debugger]:debugger: _command_names -e' \
     '*::coredumpctl commands:_coredumpctl_command'