Switch from tmux to zellij
This commit is contained in:
parent
61cdce3ac6
commit
98a01af1a6
|
@ -1,8 +0,0 @@
|
|||
# Launch tmux if logging in over ssh
|
||||
if [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
||||
if tmux has-session -t ssh_tmux 2>/dev/null; then
|
||||
exec tmux -2 attach-session -t ssh_tmux
|
||||
else
|
||||
exec tmux -2 new-session -s ssh_tmux
|
||||
fi
|
||||
fi
|
4
home/.config/zsh/01-zellij.zsh
Normal file
4
home/.config/zsh/01-zellij.zsh
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Launch zellij if logging in over SSH
|
||||
if [[ -z "$ZELLIJ" && -n "$SSH_CONNECTION" ]]; then
|
||||
exec zellij attach -cs ssh
|
||||
fi
|
Loading…
Reference in a new issue