[PR] dylanaraps/neofetch#1890 from Jai-JAP - Twister os support
Upstream PR: https://github.com/dylanaraps/neofetch/pull/1890 Thanks to @Jai-JAP Co-authored-by: Jai A P <78354625+Jai-JAP@users.noreply.github.com>
This commit is contained in:
commit
26495b59cd
1 changed files with 46 additions and 0 deletions
46
neofetch
46
neofetch
|
@ -1037,6 +1037,23 @@ get_distro() {
|
|||
distro="Proxmox VE ${distro%/*}"
|
||||
esac
|
||||
|
||||
elif type -p twistver >/dev/null; then
|
||||
if [[ -f /etc/armbian-release ]]; then
|
||||
. /etc/armbian-release
|
||||
case $distro_shorthand in
|
||||
on) distro="$( twistver ) (Armbian ${VERSION})" ;;
|
||||
tiny) distro="$( twistver ) (Armbian)" ;;
|
||||
off) distro="$( twistver ) (Armbian ${VERSION} ${DISTRIBUTION_CODENAME})" ;;
|
||||
esac
|
||||
else
|
||||
. /etc/os-release
|
||||
case $distro_shorthand in
|
||||
on) distro="$( twistver ) (${NAME} ${VERSION_ID})" ;;
|
||||
tiny) distro="$( twistver ) (${NAME})" ;;
|
||||
off) distro="$( twistver ) (${PRETTY_NAME}})" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
elif type -p lsb_release >/dev/null; then
|
||||
case $distro_shorthand in
|
||||
on) lsb_flags=-si ;;
|
||||
|
@ -11919,6 +11936,35 @@ ${c1} """" ${c2}d$$$$"'
|
|||
EOF
|
||||
;;
|
||||
|
||||
"Twister"*)
|
||||
set_colors 2 1 4 5 7
|
||||
read -rd '' ascii_data <<'EOF'
|
||||
${c3}.......................${c4}.......${c5}.,:ccllllcc:.${c4}...
|
||||
${c3}.......................${c5}.,;cldxkO0KXNNNWNNNX0x:
|
||||
${c3}.................${c5}.,:ldkOOKK0OkkkkkOKWMMMMMMMNo
|
||||
${c3}.............${c5},;coxO0Oxo::'${c4}.........${c5},oXMMMMMM0'
|
||||
${c3}.........${c5},:ldkOOkc;'${c3}...${c4}.............${c5};OMMMMW0:${c4}.
|
||||
${c3}.......${c5};ldkOxol:'${c3}......${c4}............${c5},dNMMX0''${c4}..
|
||||
${c3}....${c5};:oxkxl:'${c3}..........${c4}..........${c5},lOWWXx:.,'${c4}..
|
||||
${c3}..${c5},ldxkkd:'${c3}............${c5}.:c${c4}....${c5}':lkNMNOc,cdl'${c4}..
|
||||
${c3}.${c5};oxxkkkc'${c3}.........${c5}.:clc;'.';lkKNNKk;;ck00l${c4}...
|
||||
${c5}.lxxxkkkxoooooddxkOOko'..cok0KOd':::o0NXd;'${c4}...
|
||||
${c3}.${c5}:odxxkkOOOOOOOkdoi'..:ddxdoc:::od0NWW0c'${c4}.....
|
||||
${c3}...${c5}':;gggggg;::''.......::::x0XWMMMNO.::'${c4}.....
|
||||
${c3}..............${c5};......,;od0KNWMWNK0O:::do'${c4}.....
|
||||
${c3}...............${c5}'cclgggggggxdll":::'XKoo,${c4}......
|
||||
${c3}.................${c5}',,,,,,,::::;ooNWMWOc'${c4}.......
|
||||
${c3}..................${c5},:loxxxO0KXNNXK0ko:'${c4}........
|
||||
${c3}..................${c5}';::;oTcoggcoF":::'${c4}.........
|
||||
${c3}..................${c5}':o,.:::::::::,p'${c4}...........
|
||||
${c3}..................${c5};'ccdxkOOOdxlf'${c4}.............
|
||||
${c3}.................${c5},l;;XgggggXP:'${c4}...............
|
||||
${c3}................${c5};lco;::::::'${c4}..................
|
||||
${c3}..............${c5}.';ggggol'`${c4}.....................
|
||||
${c3}.............${c5}':oo:''${c3}...${c4}.......................
|
||||
EOF
|
||||
;;
|
||||
|
||||
"Ubuntu Cinnamon"* | "Ubuntu-Cinnamon"*)
|
||||
set_colors 1 7
|
||||
read -rd '' ascii_data <<'EOF'
|
||||
|
|
Loading…
Reference in a new issue