From 5801cd44a1b075ba81266fc9ca1ca3173660b57a Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sun, 13 Nov 2016 18:08:07 +0700 Subject: [PATCH] Added fallback ASCII for *BSD, Solaris, GNU --- ascii/distro/bsd | 19 +++++++++++++++++++ ascii/distro/gnu | 18 ++++++++++++++++++ ascii/distro/solaris | 8 ++++++++ neofetch | 22 ++++++++++++++++++---- 4 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 ascii/distro/bsd create mode 100644 ascii/distro/gnu create mode 100644 ascii/distro/solaris diff --git a/ascii/distro/bsd b/ascii/distro/bsd new file mode 100644 index 00000000..b8869147 --- /dev/null +++ b/ascii/distro/bsd @@ -0,0 +1,19 @@ +${c1} , , + /( )` + \ \___ / | + /- _ `-/ ' + (${c2}/\/ \ ${c1}\ /\ + ${c2}/ / | ` ${c1}\ + ${c3}O O ${c2}) ${c1}/ | + ${c2}`-^--'${c1}`< ' + (_.) _ ) / + `.___/` / + `-----' / + ${c4}<----. __ / __ \ + ${c4}<----|====${c1}O)))${c4}==${c1}) \) /${c4}====| + <----' ${c1}`--' `.__,' \ + | | + \ / /\ + ${c5}______${c1}( (_ / \______/ + ${c5},' ,-----' | + `--{__________) diff --git a/ascii/distro/gnu b/ascii/distro/gnu new file mode 100644 index 00000000..e4b4c017 --- /dev/null +++ b/ascii/distro/gnu @@ -0,0 +1,18 @@ +${c1} _-`````-, ,- '- . + .' .- - | | - -. `. + /.' / `. \ +:/ : _... ..._ `` : +:: : /._ .`:'_.._\. || : +:: `._ ./ ,` : \ . _.'' . +`:. / | -. \-. \\_ / + \:._ _/ .' .@) \@) ` `\ ,.' + _/,--' .- .\,-.`--`. + ,'/'' (( \ ` ) + /'/' \ `-' ( + '/'' `._,-----' + ''/' .,---' + ''/' ;: + ''/'' ''/ + ''/''/'' + '/'/' + `; diff --git a/ascii/distro/solaris b/ascii/distro/solaris new file mode 100644 index 00000000..95a7f1a1 --- /dev/null +++ b/ascii/distro/solaris @@ -0,0 +1,8 @@ +${c1} `- ` + `-- `+- .: + .+: `++: -/+- . + `.::` -++/``:::`./+/ `.-/. + `++/-`.` ` /++:` + `` ./:` .: `..`.- +``./+/:- -+++:- + -/+` :. diff --git a/neofetch b/neofetch index 68903e55..83ff0119 100755 --- a/neofetch +++ b/neofetch @@ -2537,10 +2537,24 @@ get_distro_colors() { ;; *) - if [[ "$os" == "Linux" ]]; then - ascii_distro="linux" - set_colors fg 8 3 - fi + case "$os" in + "Linux") + ascii_distro="linux" + set_colors fg 8 3 + ;; + "BSD") + ascii_distro="bsd" + set_colors 1 7 4 3 6 + ;; + "GNU") + ascii_distro="gnu" + set_colors fg + ;; + "Solaris") + ascii_distro="solaris" + set_colors 3 + ;; + esac ;; esac