Added 'debversion' function for Debian systems.
This commit is contained in:
parent
f5e0ae3e43
commit
5b5acb0ba3
@ -113,4 +113,12 @@ list-ssh-keys() {
|
||||
done
|
||||
}
|
||||
|
||||
{{- if eq .chezmoi.osRelease.id "debian" }}
|
||||
debversion() {
|
||||
local pkgname="${1:?packagename required}"
|
||||
dpkg -s $pkgname | grep Version
|
||||
}
|
||||
{{- end }}
|
||||
|
||||
|
||||
PATH=$PATH:$HOME/bin
|
||||
Loading…
Reference in New Issue
Block a user