From 294b5f34e720dffddd49c04c61728212c9ee6d2e Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sun, 16 Oct 2016 09:48:25 +0700 Subject: [PATCH] Added support for Bitrig --- ascii/distro/bitrig | 20 ++++++++++++++++++++ neofetch | 8 ++++---- 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 ascii/distro/bitrig diff --git a/ascii/distro/bitrig b/ascii/distro/bitrig new file mode 100644 index 00000000..97b151ee --- /dev/null +++ b/ascii/distro/bitrig @@ -0,0 +1,20 @@ +"\ +${c1} \`hMMMMN+ + -MMo-dMd\` + oMN- oMN\` + yMd /NM: + .mMmyyhMMs + :NMMMhsmMh + +MNhNNoyMm- + hMd.-hMNMN: + mMmsssmMMMo + .MMdyyhNMMMd + oMN.\`/dMddMN\` + yMm/hNm+./MM/ +.dMMMmo.\`\`.NMo +:NMMMNmmmmmMMh +/MN/-------oNN: +hMd. .dMh +sm/ /ms +" + diff --git a/neofetch b/neofetch index e21c4591..8042974b 100755 --- a/neofetch +++ b/neofetch @@ -27,7 +27,7 @@ getos() { case "$(uname)" in "Linux") os="Linux" ;; "Darwin") os="$(sw_vers -productName)" ;; - *"BSD" | "DragonFly") os="BSD" ;; + *"BSD" | "DragonFly" | "Bitrig") os="BSD" ;; "CYGWIN"*) os="Windows" ;; "SunOS") os="Solaris" ;; *) printf "%s\n" "Unknown OS detected: $(uname)"; exit 1 ;; @@ -1741,7 +1741,7 @@ getbattery() { battery="${battery/\.*/%}" ;; - "OpenBSD"*) + "OpenBSD"* | "Bitrig"*) battery0full="$(sysctl -n hw.sensors.acpibat0.watthour0)" battery0full="${battery0full/ Wh*}" @@ -1854,7 +1854,7 @@ getbirthday() { "BSD") case "$distro" in - "OpenBSD"*) + "OpenBSD"* | "Bitrig"*) birthday="$(ls -alctT / | awk '/lost\+found/ {printf $6 " " $7 " " $9 " " $8}')" birthday_shorthand="on" ;; @@ -2541,7 +2541,7 @@ colors() { ascii_distro="mint" ;; - "LMDE"* | "Chapeau"*) + "LMDE"* | "Chapeau"* | "Bitrig"*) setcolors 2 7 ;;