mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
Remove cd in __fish_print_interfaces
This commit is contained in:
committed by
Kurtis Rader
parent
d905ed33fe
commit
59eb75021b
@@ -1,9 +1,7 @@
|
||||
function __fish_print_interfaces --description "Print a list of known network interfaces"
|
||||
if test -d /sys/class/net
|
||||
cd /sys/class/net
|
||||
for i in *
|
||||
echo $i
|
||||
end
|
||||
set -l interfaces /sys/class/net/*
|
||||
string replace /sys/class/net/ '' $interfaces
|
||||
else # OSX/BSD
|
||||
command ifconfig -l | string split ' '
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user