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

@ -18,6 +18,7 @@ twopizza9621536/zsh-eza
fdellwing/zsh-bat fdellwing/zsh-bat
amyreese/zsh-titles amyreese/zsh-titles
Aloxaf/fzf-tab Aloxaf/fzf-tab
#https://git.eeleater.org/eeleater/zsh-auto-notify-ntfy-integration
# other plugins # other plugins
urbainvaes/fzf-marks urbainvaes/fzf-marks

View file

@ -51,7 +51,6 @@ export PYTHONSTARTUP=/etc/python/pythonrc
# stuff # stuff
export ZELLIJ_AUTO_ATTACH=true export ZELLIJ_AUTO_ATTACH=true
export ZELLIJ_AUTO_EXIT=true export ZELLIJ_AUTO_EXIT=true
export TERMINALNAME=$(fastfetch --pipe -s Terminal 2>/dev/null | awk '{print $2}')
export MANROFFOPT="-c" export MANROFFOPT="-c"
export FZF_DEFAULT_OPTS='--color=fg:#f8f8f2,bg:#282a36,hl:#bd93f9 --color=fg+:#f8f8f2,bg+:#44475a,hl+:#bd93f9 --color=info:#ffb86c,prompt:#50fa7b,pointer:#ff79c6 --color=marker:#ff79c6,spinner:#ffb86c,header:#6272a4' export FZF_DEFAULT_OPTS='--color=fg:#f8f8f2,bg:#282a36,hl:#bd93f9 --color=fg+:#f8f8f2,bg+:#44475a,hl+:#bd93f9 --color=info:#ffb86c,prompt:#50fa7b,pointer:#ff79c6 --color=marker:#ff79c6,spinner:#ffb86c,header:#6272a4'

View file

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