about summary refs log tree commit diff
path: root/Completion/Unix/Type/_net_interfaces
blob: 5be66d7d135f9719bcb280592c63860e602425e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
#compdef ifup ifdown

local expl
local -a net_intf_disp net_intf_list

_find_net_interfaces

_wanted interfaces expl 'network interface' \
    compadd "$@" "$net_intf_disp[@]" - "${(@)net_intf_list%%:*}"