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:
948953b
)
Add tmux client count reporting to motd
author
Siraaj Khandkar
<siraaj@khandkar.net>
Sun, 1 Nov 2020 21:19:49 +0000
(16:19 -0500)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Sun, 1 Nov 2020 21:19:49 +0000
(16:19 -0500)
home/lib/login_functions.sh
patch
|
blob
|
blame
|
history
diff --git
a/home/lib/login_functions.sh
b/home/lib/login_functions.sh
index
3a9230f
..
01ada21
100644
(file)
--- a/
home/lib/login_functions.sh
+++ b/
home/lib/login_functions.sh
@@
-447,7
+447,9
@@
motd() {
echo
- printf 'tmux sessions: %d\n' "$(tmux ls 2> /dev/null | wc -l)"
+ printf 'tmux: sessions %d, clients: %d\n' \
+ "$(tmux list-sessions 2> /dev/null | wc -l)" \
+ "$(tmux list-clients 2> /dev/null | wc -l)"
echo
This page took
0.022294 seconds
and
4
git commands to generate.