From 86d231f832ad59610a3cf94190dc4d67fd782580 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sat, 1 May 2021 15:24:01 +0100 Subject: [PATCH] zsh: list tmux sessions if possible --- zsh/lib/motd.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/lib/motd.zsh b/zsh/lib/motd.zsh index dd49215..59dcad3 100644 --- a/zsh/lib/motd.zsh +++ b/zsh/lib/motd.zsh @@ -20,3 +20,6 @@ pkg_count=$(checkupdates -n | grep -cv '\[.*\]') if (( $pkg_count > 0 )); then short "Outdated packages: $pkg_count" fi + +# list sessions if possible +tmux list-sessions 2>/dev/null || true -- 2.48.1