home
/
code
/
khome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch status to list tmux server and client procs
[khome.git]
/
home
/
lib
/
login_functions.sh
diff --git
a/home/lib/login_functions.sh
b/home/lib/login_functions.sh
index
8d6bbd9
..
f435d19
100644
(file)
--- a/
home/lib/login_functions.sh
+++ b/
home/lib/login_functions.sh
@@
-674,11
+674,14
@@
status() {
echo 'accounting'
echo 'accounting'
- printf '%stmux\n%sse
ssion
s %d, clients %d\n' \
+ printf '%stmux\n%sse
rver
s %d, clients %d\n' \
"$indent_unit" \
"${indent_unit}${indent_unit}" \
"$indent_unit" \
"${indent_unit}${indent_unit}" \
- "$(tmux list-sessions 2> /dev/null | wc -l)" \
- "$(tmux list-clients 2> /dev/null | wc -l)"
+ "$(pgrep -l 'tmux: server' | wc -l)" \
+ "$(pgrep -l 'tmux: client' | wc -l)"
+ # TODO sessions and clients per server
+ #"$(tmux list-sessions 2> /dev/null | wc -l)" \
+ #"$(tmux list-clients 2> /dev/null | wc -l)"
echo
echo
This page took
0.025665 seconds
and
4
git commands to generate.