Added fdfind and tldr++ check.

This commit is contained in:
Heavy@Hetzner 2023-01-27 09:27:44 +00:00
parent 10c79c9dd1
commit 1c00eadb7b

View File

@ -69,6 +69,15 @@ alias sol-dark='set-scheme.sh solarized.dark'
alias quota='quota -gls'
{{ end -}}
# if tldr++ is installed, use it the static way
if tldr --version &> /dev/null
then
tldrVersion="$(tldr --version 2>&1)"
if [[ $tldrVersion =~ tldr\+\+.* ]]; then
alias tldr='tldr --static'
fi
fi
# Depending on availability
if [ -x /usr/bin/batcat ]; then
alias cat='batcat'
@ -76,3 +85,8 @@ fi
if [ -x /usr/bin/bat ] || [ -x bat ]; then
alias cat='bat'
fi
# 'fd' on Debian is 'fdfind'
if [ -x /usr/bin/fdfind ]; then
alias fd='fdfind'
fi