From 35d14d683cc2bab8303443050e62f1b2fa3c7680 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 28 May 2026 11:05:49 +0300 Subject: Rename tmpclean to tmputils::clean with namespaced prefix --- fish/conf.d/supersync.fish | 2 +- fish/conf.d/tmputils.fish | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fish/conf.d/supersync.fish b/fish/conf.d/supersync.fish index 8298727..f042853 100644 --- a/fish/conf.d/supersync.fish +++ b/fish/conf.d/supersync.fish @@ -75,7 +75,7 @@ function supersync end supersync::gitsyncer - tmpclean + tmputils::clean # update::tools date +%s >$SUPERSYNC_STAMP_FILE.tmp diff --git a/fish/conf.d/tmputils.fish b/fish/conf.d/tmputils.fish index 80686f7..fb93b38 100644 --- a/fish/conf.d/tmputils.fish +++ b/fish/conf.d/tmputils.fish @@ -82,7 +82,7 @@ function tmpmove echo "Moved $src -> $dest" end -function __tmpclean_stat_mtime --argument file +function tmputils::__stat_mtime --argument file # Portable file mtime in seconds since epoch (Linux vs macOS) if test (uname) = Darwin stat -f %m "$file" 2>/dev/null @@ -91,9 +91,9 @@ function __tmpclean_stat_mtime --argument file end end -function tmpclean +function tmputils::clean if not test -d "$TMPUTILS_DIR" - echo "tmpclean: TMPUTILS_DIR ($TMPUTILS_DIR) does not exist" + echo "tmputils::clean: TMPUTILS_DIR ($TMPUTILS_DIR) does not exist" return 1 end @@ -122,12 +122,12 @@ function tmpclean if test -n "$newest" set mtime (math floor "$newest") else - set mtime (__tmpclean_stat_mtime "$folder") + set mtime (tmputils::__stat_mtime "$folder") end # Skip if we couldn't determine mtime if test -z "$mtime" - echo "tmpclean: skipping $folder (could not read mtime)" + echo "tmputils::clean: skipping $folder (could not read mtime)" continue end -- cgit v1.2.3