From 0f0806ca068c1ae7a900b0ed2dff02b8206d607b Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 15 Feb 2016 12:39:02 +1100 Subject: [PATCH] Added support for KaOS --- ascii/distro/kaos | 18 ++++++++++++++++++ fetch | 9 ++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 ascii/distro/kaos diff --git a/ascii/distro/kaos b/ascii/distro/kaos new file mode 100644 index 00000000..9e694dde --- /dev/null +++ b/ascii/distro/kaos @@ -0,0 +1,18 @@ +"\ +${c1} ████████ ████████ +${c1} ██████ ██████ +${c1} ████ ████ +${c1} █ █ +${c1} █ +${c1} █ ${c2} ████████ ████████ +${c1} █ ${c2} ██████ ██████ +${c1} █ ${c2} ████ ████ +${c1} █ ${c2} █ █ +${c1} █ ${c2} █ +${c1} ${c3}███████ ███████ +${c1} ${c3} █████ █████${c2} █ +${c1} █${c3} ███ ███ ${c2} █ +${c1} █ ${c3} █ ${c2} █ +${c1} █ ${c3}█ ${c2} █ +${c1} █ ${c3}█ ${c2} █ +" diff --git a/fetch b/fetch index 4eb59805..a1dfa1c9 100755 --- a/fetch +++ b/fetch @@ -424,8 +424,9 @@ x32="x86" case "$os" in "Linux" ) if type -p lsb_release >/dev/null 2>&1; then - distro="$(lsb_release -a 2>/dev/null | awk -F':' '/Description/ {printf $2}')" + distro="$(lsb_release -d 2>/dev/null | awk -F':' '/Description/ {printf $2}')" distro=${distro/[[:space:]]} + elif type -p crux >/dev/null 2>&1; then distro="CRUX" else @@ -1637,6 +1638,12 @@ getascii () { c2=$(color 8) ;; + "KaOS"*) + c1=$(color 4) + c2=$(color 7) + c3=$(color 1) + ;; + "Mac OS X"* | "Manjaro"* | "Deepin"*) c1=$(color 2) c2=$(color 3)