From 4839bb334af7c0f905db64a1505bd97a020ac710 Mon Sep 17 00:00:00 2001 From: cyteen Date: Wed, 4 Mar 2026 15:18:29 +0000 Subject: [PATCH] Install two-percent in addition to httm, fuzy finder in rust from httm ppa. --- 020_zfs_httm.sh | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/020_zfs_httm.sh b/020_zfs_httm.sh index 983c6c9..c347ffa 100644 --- a/020_zfs_httm.sh +++ b/020_zfs_httm.sh @@ -17,7 +17,7 @@ USER=kimono-koans APP="httm" KEY_HOME=/usr/share/keyrings KEY=${KEY_HOME}/"${USER}.gpg" -packages="httm" +packages=(httm two-percent) # echo "deb [signed-by=/etc/apt/trusted.gpg.d/${KEY}] https://${URL}/${USER}/ppa/main ./" | sudo tee /etc/apt/sources.list-available/${APP}-ppa.list # echo "deb-src [signed-by=/etc/apt/trusted.gpg.d/${KEY}] https://${URL}/${USER}/ppa/main ./" | sudo tee -a /etc/apt/sources.list-available/${APP}-ppa.list @@ -48,8 +48,7 @@ fi curl -Ls --compressed https://${URL}/${USER}/ppa/refs/heads/main/KEY.gpg | gpg --dearmor | sudo tee ${KEY} >/dev/null sudo apt update -sudo apt install -y --no-install-recommends "$packages" - +sudo apt install -y --no-install-recommends "${packages[@]}" # Using cargo # https://crates.io/crates/httm # curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh @@ -151,3 +150,23 @@ httm-select-widget() { zle -N httm-select-widget bindkey '\es' httm-select-widget EOF + +# The ounce script (codename: "dimebag") is a wrapper for httm that automates +# snapshot creation with minimal mental overhead. It uses seccomp and eBPF to +# trace file modifications and automatically takes a snapshot before you edit +# a file, effectively providing non-periodic dynamic snapshots "auto-snapshot" +# behavior. +# To integrate ounce into your workflow, you can set up aliases in your shell +# (e.g., .zshrc): +conf_print_ounce_aliases() { + cat </dev/null + +# request ZFS snapshot privileges +ounce --give-priv