mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
42995: Only complete active connections for nmcli connection down
This commit is contained in:
parent
33ec368172
commit
8cb4fc00c2
2 changed files with 10 additions and 1 deletions
|
@ -5,6 +5,9 @@
|
|||
* 43046: Completion/Unix/Type/_pdf, Completion/X/Command/_mupdf:
|
||||
Add mupdf completer.
|
||||
|
||||
* 42995: David Klann: Completion/Linux/Command/_networkmanager:
|
||||
Only complete active connections for nmcli connection down.
|
||||
|
||||
2018-07-03 dana <dana@dana.is>
|
||||
|
||||
* 43105 (tweaked): Completion/Unix/Command/_pgrep: Add full procps
|
||||
|
|
|
@ -102,7 +102,7 @@ _nm_connection_up() {
|
|||
}
|
||||
|
||||
_nm_connection_down() {
|
||||
_arguments "1:connection:_nm_connection_specs"
|
||||
_arguments "1:connection:_nm_connection_active"
|
||||
}
|
||||
|
||||
_nm_connection_modify() {
|
||||
|
@ -162,6 +162,12 @@ _nm_connection_ids() {
|
|||
_describe 'select connection' con_ids
|
||||
}
|
||||
|
||||
_nm_connection_active() {
|
||||
local -a con_ids
|
||||
con_ids=(${(f)"$(_call_program nmcli nmcli -t -f name connection show --active)"})
|
||||
_describe 'select connection' con_ids
|
||||
}
|
||||
|
||||
_nm_device() {
|
||||
local curcontext="$curcontext" state line
|
||||
|
||||
|
|
Loading…
Reference in a new issue