mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-20 00:21:29 +00:00
nmcli/bash-completion: fix completion for device names for nmcli device set
Fixes: 7405d5c7b7
This commit is contained in:
parent
32e783e753
commit
fcc51f1ab7
|
@ -1292,7 +1292,7 @@ _nmcli()
|
|||
;;
|
||||
se|set)
|
||||
if [[ ${#words[@]} -eq 3 ]]; then
|
||||
_nmcli_compl_COMMAND_nl "${words[2]}" "$(printf "ifname\n%s" "$(_nmcli_con_show NAME)")"
|
||||
_nmcli_compl_COMMAND_nl "${words[2]}" "$(printf "ifname\n%s" "$(_nmcli_dev_status DEVICE)")"
|
||||
else
|
||||
_nmcli_array_delete_at words 0 1
|
||||
OPTIONS=(ifname)
|
||||
|
|
Loading…
Reference in a new issue