Check chezmoi tmp cache first for zellij

This commit is contained in:
Lockszmith (kateryna) 2024-09-21 12:44:39 -04:00
parent c29866a6d1
commit bf1b14d7d4
1 changed files with 3 additions and 1 deletions

View File

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