From 0a9bea53d6a29df22171620bc8228645cdf13e2c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 18 Jun 2026 08:10:48 +0300 Subject: worktime: source fish uprecords helper from worktime repo instead of sh Amp-Thread-ID: https://ampcode.com/threads/T-019ed908-ca57-7251-8ff1-ce10c8c3a787 Co-authored-by: Amp --- fish/conf.d/worktime.fish | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'fish/conf.d') diff --git a/fish/conf.d/worktime.fish b/fish/conf.d/worktime.fish index d84c1c8..9c936ea 100644 --- a/fish/conf.d/worktime.fish +++ b/fish/conf.d/worktime.fish @@ -48,14 +48,20 @@ function worktime::supersync_sync cd - end +# uprecords collect/import helpers live in the (private) worktime repo so that +# host-specific details stay out of the public dotfiles repo. The functions +# guard internally (collect on Darwin, import on earth). +if test -f $WORKTIME_DIR/scripts/uprecords-sync.fish + source $WORKTIME_DIR/scripts/uprecords-sync.fish +end + function worktime::supersync worktime::supersync_sync sync_quotes taskwarrior::invoke - # uprecords collect/import live in the (private) worktime repo so that - # host-specific details stay out of the public dotfiles repo. The script - # guards internally (collect on Darwin, import on earth). - sh $WORKTIME_DIR/scripts/uprecords-sync.sh collect - sh $WORKTIME_DIR/scripts/uprecords-sync.sh import + if functions -q worktime::uprecords::darwin::collect + worktime::uprecords::darwin::collect + worktime::uprecords::darwin::import + end worktime::supersync_sync no_sync_quotes end -- cgit v1.2.3