fix local ip fetch

This commit is contained in:
kento2 2026-03-07 18:23:58 +01:00
parent cb7086489e
commit a41c40d911

View file

@ -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"