diff --git a/.zshrc b/.zshrc index 3e67123..dc5e94d 100644 --- a/.zshrc +++ b/.zshrc @@ -639,12 +639,12 @@ __alias__() { # Zellij session manager if command_exists zellij; then za() { - local zsession='zellij list-sessions | tail -1 | grep -q EXITED' + # 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 + elif ! zellij list-sessions | tail -1 | grep -q EXITED; then echo "-- Zellij session active! | Connecting to existing session --" sleep 0.3 zellij attach @@ -804,9 +804,6 @@ __end__() { } main() { - if [ -e "$HOME/.zshenv" ]; then - . $HOME/.zshenv - fi __defaults__ __alias__ __sources__