From 5f32d4e4d6a983f73493258229650fd653c9e014 Mon Sep 17 00:00:00 2001 From: Technofab <34860318+TECHNOFAB11@users.noreply.github.com> Date: Tue, 26 Nov 2024 18:01:19 +0100 Subject: [PATCH] chore(pomodoro): fix nix by making path configurable --- scripts/pomodoro.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/pomodoro.sh b/scripts/pomodoro.sh index 6592b1a..387e0e4 100755 --- a/scripts/pomodoro.sh +++ b/scripts/pomodoro.sh @@ -5,11 +5,13 @@ if [ -z "$TMUX" ]; then exit 1 fi -# Check for olimorris/tmux-pomodoro-plus scripts current_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -POMODORO_SCRIPT="$current_dir/../../tmux-pomodoro-plus/scripts/pomodoro.sh" -POMODORO_HELPER="$current_dir/../../tmux-pomodoro-plus/scripts/helpers.sh" +pomodoro_path=$(get_tmux_option "@tmux2k-pomodoro-path" "$current_dir/../../tmux-pomodoro-plus") +POMODORO_SCRIPT="$pomodoro_path/scripts/pomodoro.sh" +POMODORO_HELPER="$pomodoro_path/scripts/helpers.sh" + +# Check for olimorris/tmux-pomodoro-plus scripts if [ -f "$POMODORO_SCRIPT" ]; then . "$POMODORO_SCRIPT" . "$POMODORO_HELPER"