fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
a53db7256
master
1# localization: skip(private) 2function __fish_print_interfaces --description"Print a list of known network interfaces" 3if test -d /sys/class/net 4path basename /sys/class/net/* 5else # OSX/BSD 6set -l os( uname ) 7if string match -e -q BSD --$os 8command ifconfig| string match -e -r'^[a-z]' | string replace -r':.*' '' | string split' ' 9else 10command ifconfig -l| string split' ' 11end 12end 13end