fix: use relative path for pomodoro scripts

This commit is contained in:
Abhishek Keshri 2024-11-04 01:30:32 +05:30
parent 5613733bc3
commit 07f8d6c9c0
No known key found for this signature in database

View file

@ -6,8 +6,9 @@ if [ -z "$TMUX" ]; then
fi fi
# Check for olimorris/tmux-pomodoro-plus scripts # Check for olimorris/tmux-pomodoro-plus scripts
POMODORO_SCRIPT="$HOME/.tmux/plugins/tmux-pomodoro-plus/scripts/pomodoro.sh" current_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
POMODORO_HELPER="$HOME/.tmux/plugins/tmux-pomodoro-plus/scripts/helpers.sh" 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 if [ -f "$POMODORO_SCRIPT" ]; then
. "$POMODORO_SCRIPT" . "$POMODORO_SCRIPT"