summaryrefslogtreecommitdiffstats
path: root/shell-completion/bash/systemd-cgls (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bash-completion: add missing option to systemd-cglsArthur Zamarin2023-12-211-1/+4
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* shell-completion/zsh: silence error when machinectl is not installedZbigniew Jędrzejewski-Szmek2022-10-201-1/+3
| | | | | | | | | | | | | | | | | | | | | This fixes a few unrelated issues: - when ENABLE_MACHINED is false, machinectl is not installed, but _sd_machines is still used in a few places that want to complete -M and such. Also, bash completion calls machinectl in various places. Make missing machinectl mean "no machines" in this case, so that no error is generated in the callers. - machinectl list --full would print multiple lines of output per machine, breaking grep, issue introduced in e2268fa43742ece4a5cdc2e93f731b2bb2fcc883. Using --max-addresses=1 would fix the issue, but let's use --max-addresses=0 because we now can. - the lists used in various places were slightly different for no good reason. - don't use a subshell if not necessary. The code for bash still uses the same combined list of images and running machines for various commands. The zsh code uses images for start/clone, and running machines for the rest. Maybe something to fix in the future. Replaces #25048.
* Use https for gnu.orgMichael Biebl2022-06-281-1/+1
|
* bash-completion: add the two new switches to systemd-cglsLennart Poettering2021-10-071-1/+1
| | | | | (completion hookup for zsh doesn't appear to exist, hence not adding there.)
* bash-completion: localize words and cword variablesSibo Dong2021-04-061-1/+1
| | | | | | | | | | | | | | | | | The words and cword variables are not localized in all Bash completion scripts that call _init_completion. cur, prev, words, and cword (and split if using the -s flag) are all variables that should be localized in Bash completion scripts before calling _init_completion (even if they don't otherwise appear in the calling script). This is done for cur and prev, but not for words and cword. Letting words and cword remain unlocalized may clobber variables the user is using for other purposes, which is bad. This issue can be resolved by declaring words and cword as local variables. Resolves #19188.
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* systemctl: hide first column with --plain instead of --no-legendJouke Witteveen2020-04-171-1/+1
| | | | | | | | | | Hiding the first column, which may contain bullet circles, with --no-legend is undocumented and potentially unexpected. On the other hand, not printing bullet circles with --plain is documented so hiding the column with that switch is sensible. The combination "--full --no-legend --no-pager --plain" is appropriate for automated processing of systemctl output.
* bash-completion: do not ellipsize machine nameYu Watanabe2020-01-101-1/+1
|
* shell-completion: use 4 space indentation tooZbigniew Jędrzejewski-Szmek2019-04-121-35/+34
| | | | The same as in other places, indentation levels were all over the place.
* tree-wide: drop copyright headers from frequent contributorsZbigniew Jędrzejewski-Szmek2018-06-201-1/+0
| | | | | | | | Fixes #9320. for p in Shapovalov Chevalier Rozhkov Sievers Mack Herrmann Schmidt Rudenberg Sahani Landden Andersen Watanabe; do git grep -e 'Copyright.*'$p -l|xargs perl -i -0pe 's|/([*][*])?[*]\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\s*[*]([*][*])?/\n*|\n|gms; s|\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\n*|\n|gms' done
* tree-wide: beautify remaining copyright statementsLennart Poettering2018-06-141-1/+1
| | | | | | Let's unify an beautify our remaining copyright statements, with a unicode ©. This means our copyright statements are now always formatted the same way. Yay.
* bash-completion: cgls: suggests unitsYu Watanabe2018-01-101-1/+15
|
* Add SPDX license headers to shell completion scriptsZbigniew Jędrzejewski-Szmek2017-11-191-0/+1
|
* add bash completion for systemd-cglsThomas Hindoe Paaboel Andersen2014-03-011-0/+56