From 93c9cc54255d361df99e55970079121fdc95d025 Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Tue, 31 Mar 2026 23:19:05 +0300 Subject: [PATCH] feat(sofmani): atuin update check --- .config/sofmani.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/sofmani.yml b/.config/sofmani.yml index 4aed1c8d..5a3d273d 100644 --- a/.config/sofmani.yml +++ b/.config/sofmani.yml @@ -405,6 +405,9 @@ install: - name: atuin type: shell + check_has_update: '[ "$(cat ~/.cache/sofmani/atuin-version.txt 2>/dev/null)" != "$(curl -fsSL https://api.github.com/repos/atuinsh/atuin/releases/latest | jq -r .tag_name)" ]' + post_install: mkdir -p ~/.cache/sofmani && curl -fsSL https://api.github.com/repos/atuinsh/atuin/releases/latest | jq -r .tag_name > ~/.cache/sofmani/atuin-version.txt + post_update: mkdir -p ~/.cache/sofmani && curl -fsSL https://api.github.com/repos/atuinsh/atuin/releases/latest | jq -r .tag_name > ~/.cache/sofmani/atuin-version.txt opts: command: curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh update_command: atuin-update