From 2f21f8a1db093ef3e00f6b3fe7bb08b4076e73f4 Mon Sep 17 00:00:00 2001 From: Stefan Gaiselmann Date: Fri, 28 Jan 2022 09:18:30 +0100 Subject: [PATCH] Added 'bat' alias and minor changes in os detection for deb functions. --- dot_bashrc.d/executable_08.alias.tmpl | 3 +++ dot_bashrc.d/executable_09.functions.tmpl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dot_bashrc.d/executable_08.alias.tmpl b/dot_bashrc.d/executable_08.alias.tmpl index a644a1b..0fdf155 100644 --- a/dot_bashrc.d/executable_08.alias.tmpl +++ b/dot_bashrc.d/executable_08.alias.tmpl @@ -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 diff --git a/dot_bashrc.d/executable_09.functions.tmpl b/dot_bashrc.d/executable_09.functions.tmpl index d909ddc..155dfd1 100755 --- a/dot_bashrc.d/executable_09.functions.tmpl +++ b/dot_bashrc.d/executable_09.functions.tmpl @@ -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}"