Compare commits

...
11 Commits
Author SHA1 Message Date
wyj 638f27dd87 feat: support leaf 2024-11-13 10:48:40 -05:00
Dylan Araps ccd5d9f526 Merge branch 'master' of github.com:dylanaraps/neofetch 2021-12-10 08:41:55 +02:00
Dylan Araps 644f9d29eb neofetch: Fix #1989 2021-12-10 08:41:28 +02:00
The TwilightBlood 3eaac2d9ee Add pacstall to package managers (#1979)
* Add pacstall to package managers

https://github.com/pacstall/pacstall

* Fix indents on Pacstall

* Fix tabbing

again
2021-12-08 10:11:14 +02:00
Dylan Araps 7b1f0c275e neofetch: Fix windows detection 2021-12-06 06:36:44 +02:00
Dylan Araps aab631c7dd neofetch: Fix WSL windows version. Closes #1848 2021-12-06 05:31:15 +02:00
alexcoder04 c4fba8bb0b add CBL Mariner ascii art (#1972) 2021-11-30 05:12:04 +02:00
Stealth c1c699378f Added Qubyt OS Logo (#1969) 2021-11-27 06:00:54 +02:00
Michael Straube d4070d515d Update openEuler logo (#1966) 2021-11-25 05:17:34 +02:00
Michael Straube 24b1281f9a docs: update (#1956) 2021-11-14 11:53:00 +02:00
Dylan Araps e784522206 neofetch: minor cleanup 2021-11-11 06:10:54 +02:00
2 changed files with 101 additions and 46 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2015-2020 Dylan Araps Copyright (c) 2015-2021 Dylan Araps
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+100 -45
View File
@@ -8,7 +8,7 @@
# #
# The MIT License (MIT) # The MIT License (MIT)
# #
# Copyright (c) 2015-2020 Dylan Araps # Copyright (c) 2015-2021 Dylan Araps
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal # of this software and associated documentation files (the "Software"), to deal
@@ -799,7 +799,7 @@ image_source="auto"
# openEuler, OpenIndiana, openmamba, OpenMandriva, OpenStage, OpenWrt, # openEuler, OpenIndiana, openmamba, OpenMandriva, OpenStage, OpenWrt,
# osmc, Oracle, OS Elbrus, PacBSD, Parabola, Pardus, Parrot, Parsix, # osmc, Oracle, OS Elbrus, PacBSD, Parabola, Pardus, Parrot, Parsix,
# TrueOS, PCLinuxOS, Pengwin, Peppermint, Pisi, popos, Porteus, PostMarketOS, # TrueOS, PCLinuxOS, Pengwin, Peppermint, Pisi, popos, Porteus, PostMarketOS,
# Proxmox, PuffOS, Puppy, PureOS, Qubes, Quibian, Radix, Raspbian, # Proxmox, PuffOS, Puppy, PureOS, Qubes, Qubyt, Quibian, Radix, Raspbian,
# Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, Regata, Regolith, # Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, Regata, Regolith,
# Rocky, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, Septor, # Rocky, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, Septor,
# SereneLinux, SharkLinux, Siduction, SkiffOS, Slackware, SliTaz, SmartOS, # SereneLinux, SharkLinux, Siduction, SkiffOS, Slackware, SliTaz, SmartOS,
@@ -1102,10 +1102,13 @@ get_distro() {
fi fi
if [[ $(< /proc/version) == *Microsoft* || $kernel_version == *Microsoft* ]]; then if [[ $(< /proc/version) == *Microsoft* || $kernel_version == *Microsoft* ]]; then
windows_version=$(wmic.exe os get Version)
windows_version=$(trim "${windows_version/Version}")
case $distro_shorthand in case $distro_shorthand in
on) distro+=" [Windows 10]" ;; on) distro+=" [Windows $windows_version]" ;;
tiny) distro="Windows 10" ;; tiny) distro="Windows ${windows_version::2}" ;;
*) distro+=" on Windows 10" ;; *) distro+=" on Windows $windows_version" ;;
esac esac
elif [[ $(< /proc/version) == *chrome-bot* || -f /dev/cros_ec ]]; then elif [[ $(< /proc/version) == *chrome-bot* || -f /dev/cros_ec ]]; then
@@ -1561,6 +1564,8 @@ get_packages() {
has butch && tot butch list has butch && tot butch list
has swupd && tot swupd bundle-list --quiet has swupd && tot swupd bundle-list --quiet
has pisi && tot pisi li has pisi && tot pisi li
has pacstall && tot pacstall -L
has leaf && tot leaf list
# Using the dnf package cache is much faster than rpm. # Using the dnf package cache is much faster than rpm.
if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then
@@ -1744,7 +1749,7 @@ get_shell() {
shell=${shell/ Yet another shell} shell=${shell/ Yet another shell}
shell=${shell/Copyright*} shell=${shell/Copyright*}
;; ;;
nu) nu)
shell+=$("$SHELL" -c "version | get version") shell+=$("$SHELL" -c "version | get version")
shell=${shell/ $shell_name} shell=${shell/ $shell_name}
@@ -5155,7 +5160,7 @@ ASCII:
openmamba, OpenMandriva, OpenStage, OpenWrt, osmc, Oracle, openmamba, OpenMandriva, OpenStage, OpenWrt, osmc, Oracle,
OS Elbrus, PacBSD, Parabola, Pardus, Parrot, Parsix, TrueOS, OS Elbrus, PacBSD, Parabola, Pardus, Parrot, Parsix, TrueOS,
PCLinuxOS, Pengwin, Peppermint, Pisi, popos, Porteus, PostMarketOS, PCLinuxOS, Pengwin, Peppermint, Pisi, popos, Porteus, PostMarketOS,
Proxmox, PuffOS, Puppy, PureOS, Qubes, Quibian, Radix, Raspbian, Reborn_OS, Proxmox, PuffOS, Puppy, PureOS, Qubes, Qubyt, Quibian, Radix, Raspbian, Reborn_OS,
Redstar, Redcore, Redhat, Refracted_Devuan, Regata, Regolith, Rosa, Redstar, Redcore, Redhat, Refracted_Devuan, Regata, Regolith, Rosa,
sabotage, Sabayon, Sailfish, SalentOS, Scientific, Septor, sabotage, Sabayon, Sailfish, SalentOS, Scientific, Septor,
SereneLinux, SharkLinux, Siduction, Slackware, SliTaz, SmartOS, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz, SmartOS,
@@ -6536,6 +6541,29 @@ ${c2} ..........
EOF EOF
;; ;;
"CBL-Mariner"*)
set_colors 6
read -rd '' ascii_data <<'EOF'
${c1} .
:- .
:==. .=:
:===: -==:
:-===: .====:
:-====- -=====:
-====== :=======:
-======. .=========:
-======: -==========.
-======- -===========.
:======- :===========.
:=======. .-==========.
:=======: -==========.
:=======- :==========.
:=======- .-========-
:--------. :========-
..:::--=========-
..::---================-=-
EOF
;;
"CelOS"*) "CelOS"*)
set_colors 4 6 0 5 set_colors 4 6 0 5
@@ -9095,23 +9123,29 @@ EOF
"openEuler"*) "openEuler"*)
set_colors 4 7 1 set_colors 4 7 1
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'
${c1} ${c1} `.cc.`
(##### ``.cccccccc..`
(((######## ##### `.cccccccccccccccc.`
((( ########## __...__ ``.cccccccccccccccccccccc.``
(((((((( ####### /((((((###\ `..cccccccccccccccccccccccccccc..`
((((((((((( ....... \(((((####/ `.ccccccccccccccc${c2}/++/${c1}ccccccccccccccccc.`
(((((( ((((######### ******* .ccccccccccccccc${c2}mNMMNdo+oso+${c1}ccccccccccc.
%((((((# ((######## .cccccccccc${c2}/++odms+//+mMMMMm/:+syso/${c1}cccc
/////((((( ### .ccccccccc${c2}yNNMMMs:::/::+o+/:${c1}c${c2}dMMMMMm${c1}cccc
/////(((((((# (((& .ccccccc${c2}:+NmdyyhNNmNNNd:${c1}ccccc${c1}${c2}:oyyyo:${c1}cccc
((((((((((((( .ccc${c2}:ohdmMs:${c1}cccc${c2}+mNMNmy${c1}ccccccccccccccccc
(((((((((((( .cc${c2}/NMMMMMo////:${c1}c${c2}:///:${c1}cccccccccccccccccc
((((((((( ((((((### .cc${c2}:syysyNMNNNMNy${c1}ccccccccccccccccccccccc
/((((((###### .cccccccc${c2}+MMMMMNy${c1}c${c2}:/+++/${c1}cccccccccccccccc
//((((((###### .ccccccccc${c2}ohhhs/${c1}c${c2}omMMMMNh${c1}ccccccccccccccc
/((((((##### .ccccccccccccccc${c2}:MMMMMMMM/${c1}cccccccccccccc
*********/ .cccccccccccccccc${c2}sNNNNNd+${c1}cccccccccccccc.
`..cccccccccccccccc${c2}/+/:${c1}cccccccccccccc..`
``.cccccccccccccccccccccccccccc.``
`.cccccccccccccccccccccc.`
``.cccccccccccccc.``
`.cccccccc.`
`....`
EOF EOF
;; ;;
@@ -9831,6 +9865,27 @@ ${c1} `..--..`
EOF EOF
;; ;;
"Qubyt"*)
set_colors 4 5 0 4
read -rd '' ascii_data <<'EOF'
${c1} ########################${c2}(${c3}ooo
${c1} ########################${c2}(${c3}ooo
${c1}###${c2}(${c3}ooo ${c1}###${c2}(${c3}ooo
${c1}###${c2}(${c3}ooo ${c1}###${c2}(${c3}ooo
${c1}###${c2}(${c3}ooo ${c1}###${c2}(${c3}ooo
${c1}###${c2}(${c3}ooo ${c1}###${c2}(${c3}ooo
${c1}###${c2}(${c3}ooo ${c1}###${c2}(${c3}ooo
${c1}###${c2}(${c3}ooo ${c1}###${c2}(${c3}ooo
${c1}###${c2}(${c3}ooo ${c1}##${c3}o ${c2}((((${c3}ooo
${c1}###${c2}(${c3}ooo o${c2}((${c1}### ${c3}oooooo
${c1}###${c2}(${c3}ooo oo${c2}((${c1}###${c3}o
${c1}###${c2}(${c3}ooo ooo${c2}((${c1}###
${c1}################${c2}(${c3}oo oo${c2}((((${c3}o
${c2}(((((((((((((((((${c3}ooo ooooo
oooooooooooooooooo o
EOF
;;
"Quibian"*) "Quibian"*)
set_colors 3 7 set_colors 3 7
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'
@@ -11084,30 +11139,30 @@ ${c1} -1vvnvv. `~+++` ++|+++
EOF EOF
;; ;;
"VNux"*) "VNux"*)
set_colors 11 8 15 1 7 set_colors 11 8 15 1 7
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'
${c1} ` ${c1} `
^[XOx~. ^[XOx~.
^_nwdbbkp0ti' ^_nwdbbkp0ti'
<vJCZw0LQ0Uj> <vJCZw0LQ0Uj>
${c2} _j>!vC1,, ${c2} _j>!vC1,,
${c4},${c2} ,CY${c3}O${c2}t${c3}O${c2}1(l;" ${c4},${c2} ,CY${c3}O${c2}t${c3}O${c2}1(l;"
`${c4}~-{r(1I${c2} ^${c1}/zmwJuc:${c2}I^ `${c4}~-{r(1I${c2} ^${c1}/zmwJuc:${c2}I^
'${c4}?)|${c1}U${c4}/}-${c2} ^${c3}f${c1}OCLLOw${c3}_${c2},; '${c4}?)|${c1}U${c4}/}-${c2} ^${c3}f${c1}OCLLOw${c3}_${c2},;
,${c4}i,``. ${c2}",${c3}k%ooW@$d"${c2}I,' ,${c4}i,``. ${c2}",${c3}k%ooW@$d"${c2}I,'
' ;^${c3}u$$$$$$$$^<${c2}:^ ' ;^${c3}u$$$$$$$$^<${c2}:^
` .>>${c3}($$${c5}$@@@@$$${c3}$nl${c2}[:: ` .>>${c3}($$${c5}$@@@@$$${c3}$nl${c2}[::
`!}?${c3}B$${c5}%&WMMW&%$${c3}$1}-${c2}}": `!}?${c3}B$${c5}%&WMMW&%$${c3}$1}-${c2}}":
^?j${c3}Z$${c5}WMMWWWWMMW$${c3}ofc${c2};;` ^?j${c3}Z$${c5}WMMWWWWMMW$${c3}ofc${c2};;`
<~x&${c3}$${c5}&MWWWWWWWWp${c3}-${c5}l>[< <~x&${c3}$${c5}&MWWWWWWWWp${c3}-${c5}l>[<
${c1} 'ljmwn${c2}~tk8${c5}MWWWWM8O${c2}X${c1}r${c2}+]nC${c1}[ ${c1} 'ljmwn${c2}~tk8${c5}MWWWWM8O${c2}X${c1}r${c2}+]nC${c1}[
!JZqwwdX${c2}:^C8${c5}#MMMM@${c2}X${c1}Odpdpq0< !JZqwwdX${c2}:^C8${c5}#MMMM@${c2}X${c1}Odpdpq0<
<wwwwmmpO${c2}1${c3}0@%%%%8${c2}d${c1}nqmwmqqqJl <wwwwmmpO${c2}1${c3}0@%%%%8${c2}d${c1}nqmwmqqqJl
?QOZmqqqpb${c2}t[run/?!${c1}0pwqqQj-, ?QOZmqqqpb${c2}t[run/?!${c1}0pwqqQj-,
^:l<{nUUv> ^x00J(" ^:l<{nUUv> ^x00J("
^" ^"
EOF EOF
;; ;;
@@ -11524,7 +11579,7 @@ main() {
err "Neofetch command: $0 $*" err "Neofetch command: $0 $*"
err "Neofetch version: $version" err "Neofetch version: $version"
[[ $verbose == on ]] && printf %b "$err" >&2 [[ $verbose == on ]] && printf '%b\033[m' "$err" >&2
# If `--loop` was used, constantly redraw the image. # If `--loop` was used, constantly redraw the image.
while [[ $image_loop == on && $image_backend == w3m ]]; do while [[ $image_loop == on && $image_backend == w3m ]]; do