Right now the bash completion for systemctl is so slow that it is generally worse than having nothing at all. Even simple things take several seconds to complete, and there is no feedback since completions are expected to be quick. E.g. systemctl enable ssh<tab> often takes long enough that I regret tabbing and would have completed it faster by typing manually. The more possible completions the worse it seems to get. systemd-233-6.fc26.x86_64
This message is a reminder that Fedora 26 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '26'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 26 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Please fix this issue or disable the autocompletion.
I'd say it's a similar (or maybe the same) issue as https://github.com/systemd/systemd/issues/8216. If you don't want autocomplete for the systemctl command, you can disable it with: $ complete -F systemctl -r
This message is a reminder that Fedora 27 is nearing its end of life. On 2018-Nov-30 Fedora will stop maintaining and issuing updates for Fedora 27. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '27'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 27 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
- Patch from: [UHUsystems.com] (https://uhusystems.com/) - Maintainer: Janos Strbik janos.strbik --- - Problem: bash completion of systemctl command is very slow or totally hanged up for minutes in case of a great number of systemd units (>250). - Reason: Completion routines calls systemctl as times as many systemd units exist. - Solution: Patch file `/usr/share/bash-completion/completions/systemctl` as the following: ```patch 22c22 < systemctl $mode --full --no-legend "$@" --- > systemctl $mode --full --no-legend --no-pager "$@" 44a45,48 > > # > # UHU PATCH Tue Mar 14 18:50:31 CET 2017 { > # 46,49c50,53 < <(__systemctl $mode show --property "$property" -- "${units[@]}") < for ((i=0; $i < ${#units[*]}; i++)); do < if [[ "${props[i]}" = "$property=$value" ]]; then < echo " ${units[i]}" --- > <(__systemctl $mode show --property Names,"$property" -- \*) > for ((i=0; $i < ${#props[*]}; i=i+2)); do > if [[ "${props[i+1]}" = "$property=$value" ]]; then > echo " ${props[i]#Names=}" 51a56,59 > # > # } UHU PATCH Tue Mar 14 18:50:31 CET 2017 > # > ``` Source: https://www.reddit.com/r/systemd/comments/5ze9jz/systemd_systemctl_bash_completion_is_very_slow_or/
This message is a reminder that Fedora 28 is nearing its end of life. On 2019-May-28 Fedora will stop maintaining and issuing updates for Fedora 28. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '28'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 28 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Sorry we couldn't get this. If you have suggestions how to improve the completion scripts, please submit a PR upstream at https://github.com/systemd/systemd/. There have been various improvements made upstream in the meantime, please check if things work better for you with recent systemd versions.
It does indeed seem to be faster. This is on Fedora 29 with systemd-239-12.git8bca462.fc29.x86_64. Thanks!