cleaned up

This commit is contained in:
2025-09-08 12:10:10 +02:00
parent a2fd70e096
commit d5b3d7c597
21 changed files with 522 additions and 498 deletions

View File

@@ -1,39 +1,43 @@
if command -v "fzf" >/dev/null; then
FZF="fzf --black --ansi --cycle --tiebreak=chunk,index"
else
err "Did not find the command-line fuzzy finder fzf."
exit 1
fi
export FZF
if [ ! "${TOOLS_LOADED:-}" ]; then
if command -v "fzf" >/dev/null; then
FZF="fzf --black --ansi --cycle --tiebreak=chunk,index"
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 "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 "jq" >/dev/null; then
JQ="jq -r --compact-output"
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 "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
if command -v "socat" >/dev/null; then
SOCAT="socat"
else
err "Did not find socat."
exit 1
fi
export SOCAT
export TOOLS_LOADED=1
fi
export SOCAT