From 98dd91f5f5569fca21fd75d09ce7470dc80b901e Mon Sep 17 00:00:00 2001 From: Heavy Date: Sat, 1 Jan 2022 15:13:23 +0100 Subject: [PATCH] Added debversion function if os id is "linuxmint". --- dot_bashrc.d/executable_09.functions.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dot_bashrc.d/executable_09.functions.tmpl b/dot_bashrc.d/executable_09.functions.tmpl index 3b47f4a..d8598bd 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 eq .chezmoi.osRelease.id "debian" }} +{{- if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "linuxmint")) }} debversion() { local pkgname="${1:?packagename required}" dpkg -s $pkgname | grep Version @@ -121,4 +121,5 @@ debversion() { {{- end }} + PATH=$PATH:$HOME/bin