1
0
Fork 0

install: add fancy install script

This commit is contained in:
Adrien Abraham 2022-09-07 12:19:27 +02:00
parent ebf747e214
commit 14c08f8b6c

16
install.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
ensure_has() {
if ! command -v "$1" > /dev/null; then
echo "Can't find $1."
exit 1
fi
}
ensure_has fdfind
ensure_has fzf
ensure_has install-script
fdfind -t x \
| fzf -m --layout=reverse \
| while read -r script; do install-script "$script"; done