From cd9b970b9767b9d2a59cc432a939be60f5195774 Mon Sep 17 00:00:00 2001 From: pika Date: Tue, 6 May 2025 17:13:13 +0200 Subject: [PATCH] zellij changes --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index a65c044..902fdf4 100644 --- a/.zshrc +++ b/.zshrc @@ -639,7 +639,7 @@ __alias__() { # Zellij session manager if command_exists zellij; then za() { - if zellij list-sessions 2>/dev/null | grep -q .; then + if ! zellij list-sessions | tail -1 | grep -q EXITED; then echo "-- Zellij session active! | Connecting to existing session --" sleep 0.3 zellij attach