summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-11-15 16:51:16 +0200
committerPaul Buetow <paul@buetow.org>2025-11-15 16:51:16 +0200
commit0a506447bce1160c5a858dd78c8829f07181e7ea (patch)
tree3058b322bf30c21a4774e2df5f95c77c257c048c
parent7cf1a43b5454fb6f0b8d490e8d23953cd299dc95 (diff)
Update
-rw-r--r--dotfiles/fish/conf.d/supersync.fish4
-rw-r--r--dotfiles/fish/conf.d/timr.fish1
2 files changed, 4 insertions, 1 deletions
diff --git a/dotfiles/fish/conf.d/supersync.fish b/dotfiles/fish/conf.d/supersync.fish
index 5f6ddb3..756ab6a 100644
--- a/dotfiles/fish/conf.d/supersync.fish
+++ b/dotfiles/fish/conf.d/supersync.fish
@@ -71,10 +71,12 @@ function supersync::gitsyncer
set weekly_interval (math 7 \* 24 \* 60 \* 60)
if not test -f $enable_file
- echo $now >$enable_file
echo Gitsyncer is not enabled
+ return
end
+ echo $now >$enable_file
+
set last_run (cat $enable_file)
if test (math $now - $last_run) -lt $weekly_interval
return
diff --git a/dotfiles/fish/conf.d/timr.fish b/dotfiles/fish/conf.d/timr.fish
index 4f08445..8c92462 100644
--- a/dotfiles/fish/conf.d/timr.fish
+++ b/dotfiles/fish/conf.d/timr.fish
@@ -23,3 +23,4 @@ complete -c timr -n __fish_use_subcommand -a status -d "Show the timer status"
complete -c timr -n __fish_use_subcommand -a reset -d "Reset the timer"
complete -c timr -n __fish_use_subcommand -a live -d "Show the live timer"
complete -c timr -n __fish_use_subcommand -a prompt -d "Show the prompt status"
+