Only launch zellij in SSH
This commit is contained in:
parent
fc27e459a2
commit
4f2f794072
1 changed files with 3 additions and 8 deletions
|
@ -1,9 +1,4 @@
|
||||||
if [[ -z "$ZELLIJ" ]]; then
|
# Launch or attach zellij to existing session if logging in over ssh
|
||||||
# Launch or attach to existing session if logging in over ssh
|
if [[ -z "$ZELLIJ" && -n "$SSH_CONNECTION" ]]; then
|
||||||
if [[ -n "$SSH_CONNECTION" ]]; then
|
|
||||||
exec zellij attach -c SSH
|
exec zellij attach -c SSH
|
||||||
# Launch a new local session otherwise
|
|
||||||
else
|
|
||||||
exec zellij
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue