Added support for Bitrig

This commit is contained in:
Muhammad Herdiansyah 2016-10-16 09:48:25 +07:00
parent e91d0c3f0a
commit 294b5f34e7
2 changed files with 24 additions and 4 deletions

20
ascii/distro/bitrig Normal file
View file

@ -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
"

View file

@ -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
;;