From: Samir Benmendil Date: Sat, 1 May 2021 14:24:01 +0000 (+0100) Subject: zsh: list tmux sessions if possible X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/86d231f832ad59610a3cf94190dc4d67fd782580 zsh: list tmux sessions if possible --- 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