cleaned up
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user