From bf1b14d7d4a05b64f077ed0e1632310c1cc87bd9 Mon Sep 17 00:00:00 2001 From: "Lockszmith (kateryna)" Date: Sat, 21 Sep 2024 12:44:39 -0400 Subject: [PATCH] Check chezmoi tmp cache first for zellij --- _home/private_dot_local/bin/executable_load-zellij | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_home/private_dot_local/bin/executable_load-zellij b/_home/private_dot_local/bin/executable_load-zellij index a7dfff3..3d6ab54 100644 --- a/_home/private_dot_local/bin/executable_load-zellij +++ b/_home/private_dot_local/bin/executable_load-zellij @@ -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