Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Added support for GuixSD #321

Merged
merged 2 commits into from
Aug 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions ascii/distro/guixsd
@@ -0,0 +1,12 @@
"\
${c1} .. \`.
\`--..\`\`\`..\` \`..\`\`\`..--\`
.-:///-:::. \`-:::///:-.
\`\`\`\`.:::\` \`:::.\`\`\`\`
-//:\` -::-
://: -::-
\`///- .:::\`
-+++-:::.
:+/:::-
\`-....\`
"
8 changes: 7 additions & 1 deletion neofetch
Expand Up @@ -121,6 +121,9 @@ getdistro() {
if type -p lsb_release >/dev/null 2>&1; then
distro="$(lsb_release -d 2>/dev/null | awk -F ':' '/Description/ {printf $2}')"

elif type -p guix >/dev/null 2>&1; then
distro="GuixSD"

elif type -p crux >/dev/null 2>&1; then
distro="$(crux)"

Expand Down Expand Up @@ -350,6 +353,9 @@ getpackages() {
type -p nix-env >/dev/null 2>&1 && \
packages="$((packages+=$(ls -d -1 /nix/store/*/ | wc -l)))"

type -p guix >/dev/null 2>&1 && \
packages="$((packages+=$(ls -d -1 /gnu/store/*/ | wc -l)))"

type -p apk >/dev/null 2>&1 && \
packages="$((packages+=$(apk info | wc -l)))"

Expand Down Expand Up @@ -2416,7 +2422,7 @@ colors() {
setcolors 5 7
;;

"OpenBSD"*)
"OpenBSD"* | "GuixSD"*)
setcolors 3 7 6 1 8
;;

Expand Down