dotfiles/home/.config/zsh/01-zellij.zsh

10 lines
232 B
Bash

if [[ -z "$ZELLIJ" ]]; then
# Launch or attach to existing session if logging in over ssh
if [[ -n "$SSH_CONNECTION" ]]; then
exec zellij attach -c SSH
# Launch a new local session otherwise
else
exec zellij
fi
fi