summaryrefslogtreecommitdiff
path: root/shell-completion
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1419 from keszybz/shell-completionLennart Poettering2015-09-304-9/+7
|\ | | | | Shell completion tweaks
| * bash-completion: remove one more sort and sub-shellZbigniew Jędrzejewski-Szmek2015-09-281-2/+2
| | | | | | | | | | {} is preferred to (), because the first is just grouping, while the second invokes a separate shell.
| * bash-completion: use builtins when generating listZbigniew Jędrzejewski-Szmek2015-09-281-1/+1
| |
| * bash-completion: use builtins when generating listZbigniew Jędrzejewski-Szmek2015-09-281-1/+1
| | | | | | | | | | | | | | awk is an external program, and it is better to stick to shell built-ins. Also, even with external awk, sort -u is redundant, because the shell does this on its own.
| * shell-completion: use systemctl --state=helpZbigniew Jędrzejewski-Szmek2015-09-282-5/+3
| | | | | | | | | | | | | | This way completion lists should stay up to date. Also use systemctl -t help to list types in zsh, as was already done in bash.
* | shell-completion: journalctl: add --rotateEvgeny Vereshchagin2015-09-301-1/+1
|/
* shell-completion: nspawn: add missing values for --link-journalEvgeny Vereshchagin2015-09-261-1/+1
|
* shell-completion: journalctl: add missing optionsEvgeny Vereshchagin2015-09-251-3/+4
|
* shell-completion: journalctl: add missing fieldsEvgeny Vereshchagin2015-09-251-2/+2
|
* shell-completion: cgtop bash completion: add -r,--raw,-k,-P,--orderEvgeny Vereshchagin2015-09-211-2/+6
|
* shell-completion: cgtop bash completion: -n,--iterations,-d,--delay require argEvgeny Vereshchagin2015-09-211-2/+2
|
* shell-completion: update systemd-cgtop bash completion: --recursiveEvgeny Vereshchagin2015-09-211-1/+3
|
* cgtop: add -M/--machineEvgeny Vereshchagin2015-09-211-1/+16
|
* shell-completion: update systemd-analyze bash-completionEvgeny Vereshchagin2015-09-071-3/+3
| | | | | * Change --no-man to --man (see dad29df) * --{from,to}-pattern require arg
* shell-completion: update systemctl bash completionEvgeny Vereshchagin2015-09-041-2/+20
| | | | | Many new options have been added since the bash completion was last updated.
* run: enable interactive authorizationEvgeny Vereshchagin2015-09-011-1/+1
|
* shell-completion: bash: add systemd-path completionEvgeny Vereshchagin2015-08-311-0/+60
|
* shell-completion: bash: add networkctl completionEvgeny Vereshchagin2015-08-281-0/+70
|
* shell-completion: add `failed` state to --state compwordsEvgeny Vereshchagin2015-08-281-1/+1
|
* shell-completion: update systemd-run bash completionEvgeny Vereshchagin2015-08-271-2/+13
| | | | | Many new options have been added since the bash completion was last updated.
* shell-completion: bash: make list-transfers and cancel-transfer STANDALONESeth Jennings2015-08-181-2/+2
| | | | list-transfers and cancel-transfers don't take machine arguments.
* shell-completion: bash: add image transfer subcommandsSeth Jennings2015-08-181-1/+1
|
* Merge pull request #931 from spartacus06/update-completion-machinectlLennart Poettering2015-08-161-3/+4
|\ | | | | Update shell completion for machinectl
| * shell-completion: use list-images rather than listSeth Jennings2015-08-161-1/+2
| | | | | | | | | | | | | | | | "machinectl list" only lists running machines while many of the MACHINES commands use names of images; both running and non-running. List machines from both "list" and "list-images" and use sort -u to avoid duplicates.
| * shell-completion: update machinectl bash completionSeth Jennings2015-08-161-2/+2
| | | | | | | | | | Many new subcommands have been added since the bash completion was last updated. Bring it up to speed.
* | Merge pull request #947 from evverx/bash-completionLennart Poettering2015-08-161-1/+1
|\ \ | | | | | | Update bash-completion: generate all unit types
| * | bash-completion: generate unit type list from systemctl -t help optionEvgeny Vereshchagin2015-08-161-1/+1
| |/
* | zsh completion: update busctlNicolas Cornu2015-08-151-0/+15
|/
* zsh-completion: _loginctl/_systemd/_systemd-inhibit improvementsEric Cook2015-06-223-14/+30
| | | | | | | | | | | | | | | | | | | | | | _loginctl: respects the verbose style. which allows a user to get the pre d5df0d950f8bc behavior of not showing a description for sessions and users, by default they aren't shown. zstyle ':completion:*' verbose true or zstyle ':completion:*:loginctl*:*' verbose true # or similar Will show the descriptions. zstyle ':completion:*' verbose true and zstyle ':completion:*:loginctl*:*' verbose false # or similar Won't show descriptions for loginctl only _systemd: complete pids for systemd-notify's --pid option. display a message of the expected argument for other options. _systemd-inhibit: complete block & delay for --mode display a message of the expected argument for --who/--why
* zsh-completion: _systemd-nspawn - add more argument completionEric Cook2015-06-211-20/+21
| | | | | | | | | | | | filenames will be completed for --image/-i/--bind/--bind-ro/--tmpfs network interfaces for --network-(interface|macvlan|ipvlan|bridge) users for --user/-u, yes & no for --register, x86 * x86-64 for --personality display a message of the expected argument for --machine/-M/--uuid --slice/-S/--port/-p/--selinux-*/-Z/-L/--setenv Allow completing commands(and their options) of the host system for COMMAND
* zsh-completion: _loginctl - general bug fixesEric Cook2015-06-171-10/+54
| | | | | | | | | | | | | | | | | | | | | | 1) the iterator `fun' has an local scope. after running the completer, it will no longer be defined. 2) use _describe instead of calling compadd. Using compadd without calling _description or something similar before, restricts the user's ability to customize what is presented to them. zstyle ':completion:*' format 'Completing %d' - now displays an header showing what is being completed. zstyle ':completion::complete:loginctl-*::users' users user1 user2 - allows the user to manually specify which users is offered zstyle :completion::complete:loginctl-kill-user:\* \ ignored-patterns '(100<0-4>|user1)' - selectively ignore some users when completing loginctl kill-user <tab> Sessions, UIDs now have descriptions when selecting them. 3) removed the call to _loginctl_all_seats in _loginctl_attach(), since _loginctl_seats calls it a second time, right before adding matches. There isn't a noticeable difference doing this.
* zsh-completion: optimize _filter_units_by_propertyDaniel Hahler2015-06-061-10/+5
| | | | | | | | Optimize _filter_units_by_property by calling `systemctl` only once with a list of units, and not once per unit. I could not reproduce the "Unknown unit" error mentioned in a FIXME, which might have made this necessary previously.
* Merge pull request #5 from ↵Daniel Mack2015-06-021-23/+37
|\ | | | | | | | | systemd-mailing-devs/1432910411-14517-1-git-send-email-llua@gmx.com zsh-completion: a more style/tag aware _systemctl
| * zsh-completion: a more style/tag aware _systemctlEric Cook2015-05-291-23/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | using _wanted instead of calling compadd directly. this allows the user to customize possible matches. An example being, grouping units by type: autoload -Uz compinit; compinit zstyle ':completion:*' menu select zstyle ':completion:*' group-name '' zstyle ':completion:*' format 'Completing %d' zstyle -e ':completion:*:*:systemctl-(((re|)en|dis)able|(*re|)start|reload*):*' \ tag-order 'local type; for type in service template target socket; reply+=( systemd-units:-${type}:${type} ); reply=( "$reply systemd-units:-misc:misc" )' zstyle ':completion:*:systemd-units-template' ignored-patterns '^*@' zstyle ':completion:*:systemd-units-target' ignored-patterns '^*.target' zstyle ':completion:*:systemd-units-socket' ignored-patterns '^*.socket' zstyle ':completion:*:systemd-units-service' ignored-patterns '^*.service' zstyle ':completion:*:systemd-units-misc' ignored-patterns '*(@|.(service|socket|target))' also, <poke> http://lists.freedesktop.org/archives/systemd-devel/2015-May/032012.html
* | Merge pull request #4 from ↵Daniel Mack2015-06-021-3/+3
|\ \ | | | | | | | | | | | | systemd-mailing-devs/1431989131-25145-1-git-send-email-llua@gmx.com zsh-completion: fix completion of --user services
| * | zsh-completion: fix completion of --user servicesEric Cook2015-05-191-3/+3
| |/ | | | | | | | | | | | | | | | | | | By the time __systemctl is called, --user/--system are shifted out of `words' by _arguments. This patch queries the array sooner. In the case that both --user and --system are on the line when compsys runs, _sys_service_mgr is set to the latter. Which is seemingly how systemctl behaves. If neither are on the line, --system is set; for system services to be completed.
* | zsh-completion: fix typo in _bootctlDaniel Mack2015-06-011-1/+1
| | | | | | | | The command is 'install', not 'instal'. Fix that typo.
* | zsh-completion: update bootctlRonny Chevalier2015-05-301-1/+6
|/
* zsh-completion: make the arrays _sys_active_units, _sys_startable_units and ↵Eric Cook2015-05-181-4/+4
| | | | _sys_restartable_units local to the completer.
* zsh-completion: removing more pointless forksEric Cook2015-05-181-16/+14
| | | | I seem to have forgot about _systemctl_active_units().
* zsh-completion: less forking in _systemctl_failed_units() and make the array ↵Eric Cook2015-05-181-2/+2
| | | | `_sys_failed_units' local to the completer.
* zsh-completion: less forking in _systemctl_get_template_names()Eric Cook2015-05-181-1/+1
|
* zsh-completion: actually complete template names for subcommands enable, ↵Eric Cook2015-05-181-12/+9
| | | | | | | | | | | reenable and disable. compadd's -a option treats non-option arguments as arrays. So $(_systemctl_get_template_names) expands to some words that aren't legal array names. Even if there were, they would be empty; thus adding nothing. deduplicated a few functions too.
* zsh-completion: actually run _filter_units_by_property when creating the ↵Eric Cook2015-05-181-4/+5
| | | | arrays _sys_(re|)startable_units
* Use "new" --job-mode= option in more placesZbigniew Jędrzejewski-Szmek2015-05-182-6/+14
| | | | | | --irreversible/--ignore-dependencies/--fail are deprececated since 4dc5b821ae737914499119e29811fc3346e3d97c. Also add shell completions for --jobs-mode.
* zsh-completion: add missing completions for systemd-nspawnLukas Rusak2015-05-161-9/+13
|
* zsh-completion: update -M completion for systemd-analyzeLukas Rusak2015-05-161-1/+1
|
* zsh-completion: add missing completions for machinectlLukas Rusak2015-05-161-14/+70
| | | | Appologies, I'm still getting used to this mailing list thing and using git send-email
* shell-completion: systemctl switch-root verbZbigniew Jędrzejewski-Szmek2015-04-082-1/+6
| | | | | The completion is rudimentary (all files). I think this is OK since this is used so rarely. But not having it proposed at all is annoying.
* zsh-completion: update hostnamectlRonny Chevalier2015-04-081-1/+11
|