From b0cf44a550f5fc6724dc54ddb87b28aa1974dc5c Mon Sep 17 00:00:00 2001 From: pika Date: Wed, 7 May 2025 23:13:14 +0200 Subject: [PATCH] fixed it i guess? --- .zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 902fdf4..d700fb6 100644 --- a/.zshrc +++ b/.zshrc @@ -639,7 +639,12 @@ __alias__() { # Zellij session manager if command_exists zellij; then za() { - if ! zellij list-sessions | tail -1 | grep -q EXITED; then + local zsession='zellij list-sessions | tail -1 | grep -q EXITED' + if ! zellij list-sessions; then + echo "-- Zellij session active! | Connecting to existing session --" + sleep 0.3 + zellij attach + elif ! $zsession; then echo "-- Zellij session active! | Connecting to existing session --" sleep 0.3 zellij attach