mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 19:53:36 +08:00
11 lines
233 B
Fish
11 lines
233 B
Fish
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
|