chore(pomodoro): fix nix by making path configurable

This commit is contained in:
Technofab 2024-11-26 18:01:19 +01:00 committed by GitHub
parent 0b9f21e5a9
commit 5f32d4e4d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,11 +5,13 @@ if [ -z "$TMUX" ]; then
exit 1 exit 1
fi fi
# Check for olimorris/tmux-pomodoro-plus scripts
current_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" current_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
POMODORO_SCRIPT="$current_dir/../../tmux-pomodoro-plus/scripts/pomodoro.sh" pomodoro_path=$(get_tmux_option "@tmux2k-pomodoro-path" "$current_dir/../../tmux-pomodoro-plus")
POMODORO_HELPER="$current_dir/../../tmux-pomodoro-plus/scripts/helpers.sh"
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 if [ -f "$POMODORO_SCRIPT" ]; then
. "$POMODORO_SCRIPT" . "$POMODORO_SCRIPT"
. "$POMODORO_HELPER" . "$POMODORO_HELPER"