diff --git a/share/functions/__fish_print_interfaces.fish b/share/functions/__fish_print_interfaces.fish index 01a497640..3677bd409 100644 --- a/share/functions/__fish_print_interfaces.fish +++ b/share/functions/__fish_print_interfaces.fish @@ -1,7 +1,6 @@ function __fish_print_interfaces --description "Print a list of known network interfaces" if test -d /sys/class/net - set -l interfaces /sys/class/net/* - string replace /sys/class/net/ '' $interfaces + path basename /sys/class/net/* else # OSX/BSD set -l os (uname) if string match -e -q BSD -- $os