Switch from tmux to zellij

Also remapped some nvim and zsh keybinds to not conflict with zellij
This commit is contained in:
Marko Korhonen 2024-02-04 10:15:36 +02:00
parent df45dea143
commit 7136b447f9
8 changed files with 48 additions and 17 deletions

View file

@ -0,0 +1,9 @@
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