myhome/.local/bin/sb-mem

5 lines
117 B
Plaintext
Raw Normal View History

#!/bin/bash
print_mem(){
free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠 %2.2fGiB", ( $3 / 1024) )}'
}
print_mem