aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-24 22:43:46 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-24 22:43:46 +0300
commit1a6ea88bdb33b03ba759cebc8a1c2ec905ed6110 (patch)
tree5174be4bc832acaefc2ba668be0d6fb524bdb54d
parentb269e3544b288a51d6076d25b5f3cc4b53d5d48a (diff)
downloadpfetch-1a6ea88bdb33b03ba759cebc8a1c2ec905ed6110.tar.gz
ascii: added support for guix
-rwxr-xr-xpfetch20
1 files changed, 19 insertions, 1 deletions
diff --git a/pfetch b/pfetch
index 3401746..8bac11a 100755
--- a/pfetch
+++ b/pfetch
@@ -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} |\`__.\`/