fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMark private functions that don't need localizationa53db7256

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