chiark / gitweb /
zsh_completion: complete only pids for systemd-coredumpctl
authorDaniel Wallace <danielwallace@gtmanfred.com>
Sun, 5 May 2013 23:09:53 +0000 (18:09 -0500)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 May 2013 20:49:15 +0000 (22:49 +0200)
commit9494131b91decc5300f9bbfa0568e64546d7917a
treea1a15691eed52e27285702bbeffaedfd6cd26c6a
parentab75ca91dcc6504c88931bed4e025b8b53b11c2d
zsh_completion: complete only pids for systemd-coredumpctl

Instead of completing the whole line, which doesn't work, only complete
the pid, but still show the whole line so the user can see which command
was which.

Users can also let the parameter expansion sort the completion by date
instead of by pid, by setting

zstyle ':completion:*:*:systemd-coredumpctl:*' sort no

so that the zshcompsys doesn't sort the _describe function for only
systemd-coredumpctl.
shell-completion/systemd-zsh-completion.zsh