myhome/.local/bin/sb-mem

6 lines
118 B
Bash
Executable File

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