]> git.rmz.io Git - dotfiles.git/commitdiff
zsh: list tmux sessions if possible
authorSamir Benmendil <me@rmz.io>
Sat, 1 May 2021 14:24:01 +0000 (15:24 +0100)
committerSamir Benmendil <me@rmz.io>
Sat, 1 May 2021 14:25:48 +0000 (15:25 +0100)
zsh/lib/motd.zsh

index dd492153183a5aa17883b5b1fa18987a8861b0f0..59dcad38a100d0902370ff9afb1a3e828a04ff57 100644 (file)
@@ -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