blob: e08db81da79db9bd561ba6f2f6e8fb5b73c7dee2 (
plain)
1
2
3
4
5
6
7
8
9
10
|
function __fish_print_interfaces --description "Print a list of known network interfaces"
if test -d /sys/class/net
cd /sys/class/net
for i in *
echo $i
end
else # OSX/BSD
command ifconfig -l | string split ' '
end
end
|