install: add fancy install script
This commit is contained in:
parent
ebf747e214
commit
14c08f8b6c
16
install.sh
Executable file
16
install.sh
Executable 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
|
Loading…
Reference in a new issue