completions iw: added completions for iw dev set type and set channel

This commit is contained in:
exploide 2023-01-02 14:09:27 +01:00 committed by Johannes Altmanninger
parent 2357c9f577
commit 08728be319

View File

@ -149,6 +149,19 @@ function __fish_complete_iw
channel "" \ channel "" \
freq "" \ freq "" \
power_save "Power save state" power_save "Power save state"
else
switch "$cmd[5]"
case type
if not set -q cmd[6]
printf '%s\n' managed ibss monitor mesh wds
end
case channel
if not set -q cmd[6]
# cmd[6] is just the simple channel number
else if not set -q cmd[7]
printf '%s\n' NOHT HT20 HT40+ HT40- 5MHz 10MHz 80MHz
end
end
end end
case get case get
if not set -q cmd[5] if not set -q cmd[5]