You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
function ramSummarizer() {
|
|
# Get current RAM usage in MB (integer)
|
|
ram_used=$(ps -u $USER -o rss= | awk '{rss += $1} END {printf("%0.f", rss / 1000)}')
|
|
|
|
echo -n "Used \033[34m$ram_used MB\033[0m"
|
|
}
|
|
|
|
registerSummarizer "RAM" ramSummarizer
|