myhome/.local/bin/sb-mem

6 lines
118 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
print_mem(){
free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠 %2.2fGiB", ( $3 / 1024) )}'
}
2021-08-08 17:45:24 +02:00
print_mem