17 lines
467 B
Bash
Executable File
17 lines
467 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
ZELLIJ_PATH="${ZELLIJ_PATH:-$(which zellij.latest)}" || true
|
|
[[ -n "${ZELLIJ_PATH}" ]] || ZELLIJ_PATH="$HOME/bin/zellij.latest"
|
|
|
|
if [[ ! -x "${ZELLIJ_PATH}" || -n "$UPGRADE" ]]; then
|
|
[[ -d /tmp/zellij ]] && rm -fR /tmp/zellij* ]]
|
|
bash <(curl -qsL zellij.dev/launch) --help > /dev/null
|
|
cp /tmp/zellij/bootstrap/zellij ~/bin/zellij.latest
|
|
fi
|
|
|
|
[[ -x "${ZELLIJ_PATH:?"Can't find zellij executable"}" ]]
|
|
|
|
exec $ZELLIJ_PATH "${@}"
|