diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-02 17:55:52 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-02 17:55:52 +0300 |
| commit | 62913b518d0fb99913e93314d9d4407730b7f32e (patch) | |
| tree | ec89b6c394435afc805aa9b463bae4bfa5c482be /fish | |
| parent | e5cd3949c477308709f0052bbd0fae68a970bfa7 (diff) | |
Update
Diffstat (limited to 'fish')
| -rw-r--r-- | fish/conf.d/supersync.fish | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/fish/conf.d/supersync.fish b/fish/conf.d/supersync.fish index 0fdaef6..5a8db76 100644 --- a/fish/conf.d/supersync.fish +++ b/fish/conf.d/supersync.fish @@ -76,6 +76,33 @@ function supersync::prompts end end +function supersync::darwin_uprecords + if test (uname) != Darwin + return + end + + set -l worktime_dir ~/git/worktime + if not test -d $worktime_dir + return + end + + set -l uprecords_file + for candidate in /opt/homebrew/var/uptimed/records /usr/local/var/uptimed/records + if test -f $candidate + set uprecords_file $candidate + break + end + end + + if test -z "$uprecords_file" + return + end + + set -l target $worktime_dir/uprecords-(hostname).records + cp $uprecords_file $target + git -C $worktime_dir add $target +end + function supersync if test -f ~/.supersync_disable echo Supersync is disabled @@ -84,6 +111,7 @@ function supersync supersync::worktime sync_quotes taskwarrior::invoke + supersync::darwin_uprecords supersync::worktime no_sync_quotes supersync::prompts |
