From 431090015facac15ae4c3a8fe6f1e629831cc8fb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 May 2026 19:14:35 +0000 Subject: [PATCH] fix: skip TPM plugin install when tmux is unavailable --- all-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/all-install.sh b/all-install.sh index 521b62d..42e3a63 100755 --- a/all-install.sh +++ b/all-install.sh @@ -24,7 +24,11 @@ fish "$DIR"/fish-install.fish # but installing it here ensures all plugins are pre-installed before the first run. if [ ! -d ~/.tmux/plugins/tpm ]; then git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm - ~/.tmux/plugins/tpm/bin/install_plugins + if command -v tmux &> /dev/null; then + ~/.tmux/plugins/tpm/bin/install_plugins + else + echo "Skipping tmux plugin installation because tmux is not installed." + fi fi # https://github.com/junegunn/fzf#using-git