From 71f0575b2b73afaa6e59a16a3fcdf356d5e3e1cc Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 28 Aug 2016 08:59:11 +1000 Subject: [PATCH] Add ascii art and distro detection --- ascii/distro/android | 15 +++++++++++++++ neofetch | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 ascii/distro/android diff --git a/ascii/distro/android b/ascii/distro/android new file mode 100644 index 00000000..ff6d4949 --- /dev/null +++ b/ascii/distro/android @@ -0,0 +1,15 @@ +"\ +${c1} ╲ ▁▂▂▂▁ ╱ + ▄███████▄ + ▄██${c2} ${c1}███${c2} ${c1}██▄ + ▄███████████▄ +▄█ ▄▄▄▄▄▄▄▄▄▄▄▄▄ █▄ +██ █████████████ ██ +██ █████████████ ██ +██ █████████████ ██ +██ █████████████ ██ + █████████████ + ███████████ + ██ ██ + ██ ██ +" diff --git a/neofetch b/neofetch index 5220093e..f6943144 100755 --- a/neofetch +++ b/neofetch @@ -124,6 +124,9 @@ getdistro() { elif type -p crux >/dev/null 2>&1; then distro="$(crux)" + elif [ -d "/system/app/" ] && [ -d "/system/priv-app" ]; then + distro="Android $(getprop ro.build.version.release)" + else distro="$(awk -F 'NAME=' '/^NAME=/ {printf $2}' /etc/*ease)" distro="${distro//\"}"