Install two-percent in addition to httm, fuzy finder in rust from httm ppa.

This commit is contained in:
cyteen 2026-03-04 15:18:29 +00:00
parent 63595d3c9f
commit 4839bb334a
1 changed files with 22 additions and 3 deletions

View File

@ -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 <<EOF
alias vim="ounce --trace vim"
alias emacs="ounce --trace emacs"
alias nano="ounce --trace nano"
alias rm="ounce rm"
EOF
}
# conf_print_ounce_aliases | tee ${DEST}/.zsh_aliases.d/010_httm-aliases >/dev/null
# request ZFS snapshot privileges
ounce --give-priv