Ver Fonte

Add long distro name for Manjaro Linux

Example: Manjaro Linux 21.1.0 Pahvo
Corentin Girard há 3 anos atrás
pai
commit
8967ab4200
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      neofetch

+ 6 - 0
neofetch

@@ -987,6 +987,12 @@ get_distro() {
                 . /etc/armbian-release
                 . /etc/armbian-release
                 distro="Armbian $DISTRIBUTION_CODENAME (${VERSION:-})"
                 distro="Armbian $DISTRIBUTION_CODENAME (${VERSION:-})"
 
 
+            elif [[ -f /etc/manjaro-release ]]; then
+                case $distro_shorthand in
+                    on|tiny) distro="Manjaro Linux" ;;
+                    *) distro="Manjaro Linux $(lsb_release -src)"
+                esac
+
             elif [[ -f /etc/siduction-version ]]; then
             elif [[ -f /etc/siduction-version ]]; then
                 case $distro_shorthand in
                 case $distro_shorthand in
                     on|tiny) distro=Siduction ;;
                     on|tiny) distro=Siduction ;;