From 07f8d6c9c08f68d8a2b0090debe5f08be0777ca7 Mon Sep 17 00:00:00 2001 From: Abhishek Keshri Date: Mon, 4 Nov 2024 01:30:32 +0530 Subject: [PATCH] fix: use relative path for pomodoro scripts --- scripts/pomodoro.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/pomodoro.sh b/scripts/pomodoro.sh index 179c9b7..ff200af 100755 --- a/scripts/pomodoro.sh +++ b/scripts/pomodoro.sh @@ -6,8 +6,9 @@ if [ -z "$TMUX" ]; then fi # Check for olimorris/tmux-pomodoro-plus scripts -POMODORO_SCRIPT="$HOME/.tmux/plugins/tmux-pomodoro-plus/scripts/pomodoro.sh" -POMODORO_HELPER="$HOME/.tmux/plugins/tmux-pomodoro-plus/scripts/helpers.sh" +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" if [ -f "$POMODORO_SCRIPT" ]; then . "$POMODORO_SCRIPT"