diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-18 08:10:48 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-18 08:10:48 +0300 |
| commit | 0a9bea53d6a29df22171620bc8228645cdf13e2c (patch) | |
| tree | 177407136046415952b21204b509b8101e156738 /fish/conf.d | |
| parent | d5d5abddc68a8907603bd60f96d697fd0aa217a4 (diff) | |
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 <amp@ampcode.com>
Diffstat (limited to 'fish/conf.d')
| -rw-r--r-- | fish/conf.d/worktime.fish | 16 |
1 files changed, 11 insertions, 5 deletions
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 |
