home
/
code
/
khome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f80896
)
Add tmux session count to motd
author
Siraaj Khandkar
<siraaj@khandkar.net>
Fri, 30 Oct 2020 21:11:49 +0000
(17:11 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Fri, 30 Oct 2020 21:11:49 +0000
(17:11 -0400)
home/lib/login_functions.sh
patch
|
blob
|
blame
|
history
diff --git
a/home/lib/login_functions.sh
b/home/lib/login_functions.sh
index
4fc413f
..
4680be2
100644
(file)
--- a/
home/lib/login_functions.sh
+++ b/
home/lib/login_functions.sh
@@
-399,6
+399,10
@@
motd() {
echo
+ printf 'tmux sessions: %d\n' "$(tmux ls | wc -l)"
+
+ echo
+
printf 'mem '
free \
| awk '$1 == "Mem:" {total=$2; used=$3; print used, total}' \
This page took
0.024654 seconds
and
4
git commands to generate.