dotfiles/home/.config/zsh/01-zellij.zsh
Marko Korhonen 5561023ea8
Switch from tmux to zellij
Also remapped some nvim and zsh keybinds to not conflict with zellij
2024-02-04 10:17:25 +02:00

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 -s SSH
# Launch a new local session otherwise
else
exec zellij
fi
fi