Improve zellij loading

This commit is contained in:
Lockszmith (kateryna) 2024-09-21 14:15:49 -04:00
parent 18f047b9ca
commit ffc9fc2d95
1 changed files with 2 additions and 1 deletions

View File

@ -22,9 +22,10 @@ if is_sourced; then
} }
zellij() { zellij() {
if [[ ! -x ~/bin/zellij ]]; then if [[ ! -x ~/bin/zellij ]]; then
if [[ -r $HOME/.cache/chezmoi/tmp/zellij/zellij ]]; then if [[ -x $HOME/.cache/chezmoi/tmp/zellij/zellij ]]; then
ln --symbolic --relative $HOME/.cache/chezmoi/tmp/zellij/zellij ~/bin ln --symbolic --relative $HOME/.cache/chezmoi/tmp/zellij/zellij ~/bin
elif [[ ! -x /tmp/zellij/bootstrap/zellij ]]; then elif [[ ! -x /tmp/zellij/bootstrap/zellij ]]; then
printf "Grabbing zellij from the web!\n"
bash <(curl -sL zellij.dev/launch) "${@}" && return bash <(curl -sL zellij.dev/launch) "${@}" && return
fi fi
fi fi