$OpenBSD: patch-share_functions___fish_print_interfaces_fish,v 1.1.1.1 2017/12/16 05:14:32 abieber Exp $

This can be removed when 3.0 is released:
https://github.com/fish-shell/fish-shell/pull/4584/

Index: share/functions/__fish_print_interfaces.fish
--- share/functions/__fish_print_interfaces.fish.orig
+++ share/functions/__fish_print_interfaces.fish
@@ -3,6 +3,11 @@ function __fish_print_interfaces --description "Print
         set -l interfaces /sys/class/net/*
         string replace /sys/class/net/ '' $interfaces
     else # OSX/BSD
-        command ifconfig -l | string split ' '
+        set -l os (uname)
+        if string match -e -q "BSD" -- $os
+            command ifconfig | string match -e -r '^[a-z]' | string replace -r ':.*' '' | string split ' '
+        else
+            command ifconfig -l | string split ' '
+        end
     end
 end
