Compare commits
2 Commits
5b5acb0ba3
...
d60eb95920
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d60eb95920 | ||
|
|
98dd91f5f5 |
@ -113,12 +113,20 @@ list-ssh-keys() {
|
||||
done
|
||||
}
|
||||
|
||||
{{- if eq .chezmoi.osRelease.id "debian" }}
|
||||
{{- if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "linuxmint")) }}
|
||||
# Show version of a Debian package
|
||||
debversion() {
|
||||
local pkgname="${1:?packagename required}"
|
||||
dpkg -s $pkgname | grep Version
|
||||
}
|
||||
|
||||
# Show files of a Debian package
|
||||
deblist() {
|
||||
local pkgname="${1:?packagenamme required}"
|
||||
dpkg-query -L $pkgname
|
||||
}
|
||||
{{- end }}
|
||||
|
||||
|
||||
|
||||
PATH=$PATH:$HOME/bin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user