fixed it i guess?
This commit is contained in:
parent
cd9b970b97
commit
b0cf44a550
1 changed files with 6 additions and 1 deletions
7
.zshrc
7
.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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue