Added 'bat' alias and minor changes in os detection for deb functions.

This commit is contained in:
Stefan Gaiselmann 2022-01-28 09:18:30 +01:00
parent 47248a43c8
commit 2f21f8a1db
2 changed files with 4 additions and 1 deletions

View File

@ -82,3 +82,6 @@ alias quota='quota -gls'
if [ -x /usr/bin/batcat ]; then
alias cat='batcat'
fi
if [ -x /usr/bin/bat ]; then
alias cat='bat'
fi

View File

@ -113,7 +113,7 @@ list-ssh-keys() {
done
}
{{- if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "linuxmint") (eq .chezmoi.osRelease.id "ubuntu")) }}
{{- if (eq .chezmoi.os "linux") }}
# Show version of a Debian package
debversion() {
local pkgname="${1:?packagename required}"