Merge pull request #369 from konimex/bitrig

Added support for Bitrig
This commit is contained in:
Dylan Araps 2016-10-16 14:41:27 +11:00 committed by GitHub
commit d6beb40bca
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
;;