From ead030199f54841796dbeaede133b9a00e190f32 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 16 Dec 2016 09:41:52 +1100 Subject: [PATCH] Local IP: [Windows] Support multiple interfaces --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index f200cf7e..f4551dab 100755 --- a/neofetch +++ b/neofetch @@ -1695,7 +1695,8 @@ get_local_ip() { ;; "Windows") - local_ip="$(ipconfig | awk -F ': ' '/IPv4 Address/ {printf $2}')" + local_ip="$(ipconfig | awk -F ': ' '/IPv4 Address/ {printf $2 ", "}')" + local_ip="${local_ip%\,*}" ;; "Haiku")