set zellij to autostart on ssh connection

This commit is contained in:
eeleater 2024-09-24 14:28:05 +02:00
parent 9cbe200c92
commit 7197e4c27c
3 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,8 @@
test -v DISTROBOX_HOST_HOME && { unset ZDOTDIR; exec zsh } # fix distrobox
test "x$TERMINALNAME" = "xalacritty" && eval "$(zellij setup --generate-auto-start zsh)" # autostart zellij only in alacritty
{{- if eq .chezmoi.osRelease.id "endeavouros" }}
test -v DISTROBOX_HOST_HOME && { unset ZDOTDIR; exec zsh }
test -v SSH_CONNECTION && eval "$(zellij setup --generate-auto-start zsh)"
{{- end }}
# options
setopt NO_CLOBBER
unsetopt FLOW_CONTROL