diff options
author | Oliver Kiddle <opk@zsh.org> | 2023-11-02 16:26:16 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2023-11-02 16:26:16 +0100 |
commit | 364ecf7099c3441be1e138a432617b64c207f519 (patch) | |
tree | 30cf3267dc7a0c695597fd6b1a862f6da973039d | |
parent | 8e65233747ac8cd125f54931d951036a9af13995 (diff) | |
download | zsh-364ecf7099c3441be1e138a432617b64c207f519.tar.gz zsh-364ecf7099c3441be1e138a432617b64c207f519.zip |
52268: update nmcli completion to networkmanager 1.42.2
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Completion/Linux/Command/_networkmanager | 20 |
2 files changed, 22 insertions, 2 deletions
@@ -1,5 +1,9 @@ 2023-11-02 Oliver Kiddle <opk@zsh.org> + * 52268: Completion/Linux/Command/_networkmanager: update to 1.42.2 + + * 52266: Completion/Linux/Command/_strace: update to 2.6.5 + * 52265: Completion/Linux/Command/_findmnt, Completion/Linux/Command/_lsblk, Completion/Unix/Command/_column: update completions for some util-linux tools to version 2.39.2 diff --git a/Completion/Linux/Command/_networkmanager b/Completion/Linux/Command/_networkmanager index 1e05252b2..d44c313db 100644 --- a/Completion/Linux/Command/_networkmanager +++ b/Completion/Linux/Command/_networkmanager @@ -42,8 +42,24 @@ _nm_fields() { } _nm_general() { - _arguments "1:command:(status hostname permissions logging help)" - # TODO: provide completions for logging + local curcontext="$curcontext" state line + _arguments "1:command:(status hostname permissions logging reload help)" \ + "*::arguments:->args" + + case $line[1] in + l*) + _values -w -S ' ' values \ + 'level:level' \ + 'domains:domain' + ;; + r*) + _describe -t flags 'flag' '( + "conf:NetworkManager.conf configuration" + "dns-rc:update DNS configuration" + "dns-full:restart the DNS plugin" + )' + ;; + esac } _nm_networking() { |