Compare commits
2 Commits
cc6b56e7a7
...
14c08f8b6c
Author | SHA1 | Date |
---|---|---|
Adrien Abraham | 14c08f8b6c | 2 years ago |
Adrien Abraham | ebf747e214 | 2 years ago |
@ -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 new issue