ascii: added support for guix
This commit is contained in:
parent
b269e3544b
commit
1a6ea88bdb
20
pfetch
20
pfetch
|
@ -117,8 +117,10 @@ get_os() {
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
. /etc/os-release && distro=$PRETTY_NAME
|
. /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 crux >/dev/null && distro=$(crux)
|
||||||
|
command -v guix >/dev/null && distro='Guix System'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Darwin*)
|
Darwin*)
|
||||||
|
@ -236,6 +238,10 @@ get_pkgs() {
|
||||||
# Directories containing packages.
|
# Directories containing packages.
|
||||||
has brew && printf '%s\n' "$(brew --cellar)/"*
|
has brew && printf '%s\n' "$(brew --cellar)/"*
|
||||||
has emerge && printf '%s\n' /var/db/pkg/*/*/
|
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*)
|
Darwin*)
|
||||||
|
@ -449,6 +455,18 @@ get_ascii() {
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
[Gg]uix[Ss][Dd]*|guix*)
|
||||||
|
read_ascii 3 <<-EOF
|
||||||
|
${c3}|.__ __.|
|
||||||
|
|__ \\ / __|
|
||||||
|
\\ \\ / /
|
||||||
|
\\ \\ / /
|
||||||
|
\\ \\ / /
|
||||||
|
\\ \\/ /
|
||||||
|
\\__/
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
|
||||||
[Hh]yperbola*)
|
[Hh]yperbola*)
|
||||||
read_ascii <<-EOF
|
read_ascii <<-EOF
|
||||||
${c7} |\`__.\`/
|
${c7} |\`__.\`/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user