AstragoDE

AstragoDE / ssh-login-setup.sh

Last active 4 days ago

Like 0
README.md Raw

Add this to the end of your .bashrc to start nushell in zellij after ssh logon.

ssh-login-setup.sh Raw
1# Launch sequence for interactive SSH sessions only
2if [[ $- == *i* ]] && [[ -n "$SSH_TTY" ]]; then
3 if [[ -z "$ZELLIJ" ]]; then
4 # Set Nushell as the target shell for all Zellij panes/tabs
5 export SHELL="$(command -v nu)"
6
7 if [[ "$ZELLIJ_AUTO_ATTACH" == "true" ]]; then
8 zellij attach -c
9 else
10 zellij
11 fi
12
13 if [[ "$ZELLIJ_AUTO_EXIT" == "true" ]]; then
14 exit
15 fi
16 fi
17fi
18

Comments 0

Log in to leave a comment