Files
fuzic/src/sh/tools.sh

40 lines
591 B
Bash

if command -v "fzf" >/dev/null; then
FZF="fzf --black --ansi --cycle"
else
err "Did not find the command-line fuzzy finder fzf."
exit 1
fi
export FZF
if command -v "curl" >/dev/null; then
CURL="curl --silent"
else
err "Did not find curl."
exit 1
fi
export CURL
if command -v "jq" >/dev/null; then
JQ="jq"
else
err "Did not find jq."
exit 1
fi
export JQ
if command -v "mpv" >/dev/null; then
MPV="mpv"
else
err "Did not find mpv."
exit 1
fi
export MPV
if command -v "socat" >/dev/null; then
SOCAT="socat"
else
err "Did not find socat."
exit 1
fi
export SOCAT