Added fdfind and tldr++ check.
This commit is contained in:
parent
10c79c9dd1
commit
1c00eadb7b
@ -69,6 +69,15 @@ alias sol-dark='set-scheme.sh solarized.dark'
|
|||||||
alias quota='quota -gls'
|
alias quota='quota -gls'
|
||||||
{{ end -}}
|
{{ 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
|
# Depending on availability
|
||||||
if [ -x /usr/bin/batcat ]; then
|
if [ -x /usr/bin/batcat ]; then
|
||||||
alias cat='batcat'
|
alias cat='batcat'
|
||||||
@ -76,3 +85,8 @@ fi
|
|||||||
if [ -x /usr/bin/bat ] || [ -x bat ]; then
|
if [ -x /usr/bin/bat ] || [ -x bat ]; then
|
||||||
alias cat='bat'
|
alias cat='bat'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 'fd' on Debian is 'fdfind'
|
||||||
|
if [ -x /usr/bin/fdfind ]; then
|
||||||
|
alias fd='fdfind'
|
||||||
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user