Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476758 - Systemd guide should suggest people to enable systemctl bash-completion
Summary: Systemd guide should suggest people to enable systemctl bash-completion
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-13 20:28 UTC by Pacho Ramos
Modified: 2014-07-29 12:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2013-07-13 20:28:44 UTC
From my point of view, bash-completion for systemctl can be useful for showing available unit files without needing to review directory directly. Not sure about other systemd related completions :/



Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2013-07-13 20:30:44 UTC
I have personally enabled all:
# equery files systemd|grep bash-compl
/usr/share/bash-completion
/usr/share/bash-completion/hostnamectl
/usr/share/bash-completion/journalctl
/usr/share/bash-completion/localectl
/usr/share/bash-completion/loginctl
/usr/share/bash-completion/systemctl
/usr/share/bash-completion/systemd-analyze
/usr/share/bash-completion/systemd-coredumpctl
/usr/share/bash-completion/timedatectl
/usr/share/bash-completion/udevadm
Comment 2 Mike Gilbert gentoo-dev 2013-07-13 20:31:09 UTC
Sounds good.
Comment 3 Pacho Ramos gentoo-dev 2013-07-15 20:45:08 UTC
Do you agree if I suggest people to enable all of them with one command (optionally, of course) with something like:
for i in  $(equery files systemd | grep bash-completion/); do j=$(basename $i) && eselect bashcomp enable --global $j; done

?
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-15 20:47:37 UTC
I don't think that's really necessary. AFAIK soon bash-completion will have all files enabled by default, with opt-out behavior.
Comment 5 Pacho Ramos gentoo-dev 2013-07-15 21:20:00 UTC
Looks like it is being handled in bug 472938... not sure how "soon" is that though :/

But thanks for noticing
Comment 6 Alexander Tsoy 2013-07-16 06:32:08 UTC
(In reply to Pacho Ramos from comment #5)

All neccessary things already in tree. Systemd ebuild should be updated

- --with-bashcompletiondir=/usr/share/bash-completion
+ --with-bashcompletiondir="$(get_bashcompdir)"
Comment 7 Pacho Ramos gentoo-dev 2013-07-20 09:42:10 UTC
I guess the docs update is not needed then