summaryrefslogtreecommitdiffstats
path: root/shell-completion/zsh/_systemd-nspawn (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert "nspawn: Allow specifying custom init program"Daan De Meyer2024-08-221-1/+0
| | | | | | | | | | I don't actually need this anymore since we're going with a unit based approach for the containers stuff internally so let's just revert it. Fixes #34085 This reverts commit ce2291730d5f91190e97e7c515ac772ae4970062.
* nspawn: Allow specifying custom init programDaan De Meyer2024-08-061-0/+1
| | | | | | This allows for example forcing to use /sbin/init instead of always using /usr/lib/systemd/systemd if it exists. Or it allows using a different path altogether.
* improve zsh completion (#32098)Eisuke Kawashima2024-04-151-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix error * remove options that are no longer supported * add missing options * stop completion if an option `--help` or `--version` is supplied [[[ zjs: a note for the reader: zshcompsys(1) in the section about optspecs in _arguments says: > Each of the forms above may be preceded by a list in parentheses of option names and argument num‐ > bers. If the given option is on the command line, the options and arguments indicated in parentheses > will not be offered. For example, ‘(-two -three 1)-one:...' completes the option ‘-one'; if this ap‐ > pears on the command line, the options -two and -three and the first ordinary argument will not be > completed after it. ‘(-foo):...' specifies an ordinary argument completion; -foo will not be com‐ > pleted if that argument is already present. > > Other items may appear in the list of excluded options to indicate various other items that should > not be applied when the current specification is matched: a single star (\*) for the rest arguments > (i.e. a specification of the form ‘\*:...'); a colon (:) for all normal (non-option-) arguments; and a > hyphen (-) for all options. For example, if ‘(\*)' appears before an option and the option appears on > the command line, the list of remaining arguments (those shown in the above table beginning with > ‘\*:') will not be completed. The intended effect of the change is to remove irrelevant completion matches from the completion. tl;dr: (- : ) prevents further completion ]]]
* zsh-completion: nspawn: add --suppress-sync optionYu Watanabe2021-10-201-0/+1
| | | | Follow-up for 4a4654e0241fbeabecb8587fd3520b6b39264b9c.
* tree-wide: "a" -> "an"Yu Watanabe2021-06-301-1/+1
|
* shell-completion: revert c1072f6473bafa063cbf700c86524083d2857031Eric Cook2021-06-171-1/+1
| | | | fixing https://github.com/systemd/systemd/issues/19689
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* shell-completion/zsh: add -*type*- headersZbigniew Jędrzejewski-Szmek2019-04-121-1/+1
| | | | | Since there's no file extension, emacs and other editors do not know that this is supposed to be in shell syntax.
* zsh completion: Prevent functions from clobbering each other, &c.dana2019-01-081-3/+4
| | | | | | - Don't redefine helpers on every call - Prefix helper names with main function name - Adjust some helper names for consistency and convention adherance
* Add SPDX license headers to shell completion scriptsZbigniew Jędrzejewski-Szmek2017-11-191-0/+1
|
* nspawn-completion: implementation of shell completion of --notify-ready (#3679)Alessandro Puccetti2016-07-081-0/+1
| | | Relative to: https://github.com/systemd/systemd/pull/3474
* zsh-completion: _systemd-nspawn - add more argument completionEric Cook2015-06-221-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: add missing completions for systemd-nspawnLukas Rusak2015-05-161-9/+13
|
* completions: fix/augment zsh completions for systemd-nspawn, busctl, ↵Daniel Mack2014-03-251-4/+24
| | | | loginctl, hostnamectl, localectl, machinectl
* zsh_completion: Fix single letter argsWilliam Giokas2013-08-231-4/+4
| | | | | | | | | | | | | Things like -n to specify the lines to show with systemctl and journalctl accepts syntax like: journalctl -n4 systemctl -n14 Previously, typing `-nXX <tab>` where XX is a number, zsh would try to complete an integer. Now it will see the XX and use the _journalctl_none completion. This is also how any of the single letter options that take arguments work as well.
* zsh_completion: Split out zsh _systemd-nspawnWilliam Giokas2013-08-021-0/+24
Also fix the random lack of completion