diff --git a/files/.local/bin/fetch b/files/.local/bin/fetch index 37b3b5d..78df4c7 100755 --- a/files/.local/bin/fetch +++ b/files/.local/bin/fetch @@ -15,6 +15,6 @@ get_mem() { echo "$USER@$(hostname)" echo 'os: Void Linux x86_64-musl' echo "uptime:$(uptime -p | tr -d 'up')" # 4 hors 20 mintes -echo "ip: $(ip a | grep '192.168.178' | cut -d\ -f6 | cut -d/ -f1)" +echo "ip: $(ip a | grep -oEm1 '192\.168\.[0-9][0-9][0-9]\.[0-9]+' | head -n1)" echo "pkgs: $(xbps-query -lm | wc -l)" echo "mem: $(get_mem)M"