ascii: added support for guix

This commit is contained in:
Dylan Araps 2019-09-24 22:43:46 +03:00
parent b269e3544b
commit 1a6ea88bdb

20
pfetch
View File

@ -117,8 +117,10 @@ get_os() {
# shellcheck source=/dev/null
. /etc/os-release && distro=$PRETTY_NAME
# CRUX does its own thing entirely, go CRUX!
# Special cases for distributions which don't follow.
# the '/etc/os-release' "standard".
command -v crux >/dev/null && distro=$(crux)
command -v guix >/dev/null && distro='Guix System'
;;
Darwin*)
@ -236,6 +238,10 @@ get_pkgs() {
# Directories containing packages.
has brew && printf '%s\n' "$(brew --cellar)/"*
has emerge && printf '%s\n' /var/db/pkg/*/*/
# GUIX requires two commands.
has guix && guix package -p /run/current-system/profile -I
has guix && guix package -I
;;
Darwin*)
@ -449,6 +455,18 @@ get_ascii() {
EOF
;;
[Gg]uix[Ss][Dd]*|guix*)
read_ascii 3 <<-EOF
${c3}|.__ __.|
|__ \\ / __|
\\ \\ / /
\\ \\ / /
\\ \\ / /
\\ \\/ /
\\__/
EOF
;;
[Hh]yperbola*)
read_ascii <<-EOF
${c7} |\`__.\`/