mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 16:21:15 -03:00
Use path basename
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user