Compare commits

...

2 Commits

Author SHA1 Message Date
018945d4a7 chmod +x quick-backup 2024-11-24 07:16:08 -06:00
b367788b1f Add install-fzf 2024-11-24 07:11:59 -06:00
2 changed files with 11 additions and 0 deletions

View File

@ -89,3 +89,14 @@ install-dust:
sudo cp -v "${filename}/dust" /usr/local/bin/
sudo chown root:root /usr/local/bin/dust
rm -rf "$filename" "${filename}.tar.gz"
install-fzf:
#!/usr/bin/env bash
set -euo pipefail
curl -s https://api.github.com/repos/junegunn/fzf/releases/latest | grep "browser_download_url" | grep "linux_$(dpkg --print-architecture)" | cut -d : -f 2,3 | tr -d '"' | wget -qi -
curl -s https://api.github.com/repos/junegunn/fzf/releases/latest | grep "browser_download_url" | grep "checksums.txt" | cut -d : -f 2,3 | tr -d '"' | wget -qi -
if [ $(grep "linux_$(dpkg --print-architecture)" *checksums.txt | sha256sum -c | awk '{print $2}') = "OK" ]; then
tar xvf fzf*.tar.gz
sudo mv fzf /usr/bin/fzf
fi
rm -v fzf*.txt fzf*.tar.gz

0
shell/quick-backup Normal file → Executable file
View File