From 7fb1ba5283e3f428cda07f4f02f4e53681fcf721 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 9 Mar 2024 04:59:47 -0500 Subject: [PATCH] Added alias pi-ip. --- pi4/files/etc/skel/.bash_aliases | 1 + 1 file changed, 1 insertion(+) diff --git a/pi4/files/etc/skel/.bash_aliases b/pi4/files/etc/skel/.bash_aliases index b511d60..10ba8f8 100644 --- a/pi4/files/etc/skel/.bash_aliases +++ b/pi4/files/etc/skel/.bash_aliases @@ -1,3 +1,4 @@ # Raspberry Pi Information alias pi-temp='/usr/bin/vcgencmd measure_temp' alias pi-version='cat /sys/firmware/devicetree/base/model;echo' +alias pi-ip='ip a | grep -v "127.0.0.1" | grep -E -o "([0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]{1,2}"'