aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/assets/shell/auto-start.bash
blob: 2a050f0049b7427061e386de3cd0733986e1c4ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
if [[ -z "$ZELLIJ" ]]; then
    if [[ "$ZELLIJ_AUTO_ATTACH" == "true" ]]; then
        zellij attach -c
    else
        zellij
    fi

    if [[ "$ZELLIJ_AUTO_EXIT" == "true" ]]; then
        exit
    fi
fi