Przeglądaj źródła

[PR] dylanaraps/neofetch#1879 from Drarig29 - Add long distro name for Manjaro Linux

Upstream PR: https://github.com/dylanaraps/neofetch/pull/1879
Thanks to @Drarig29

Co-authored-by: Corentin Girard <corentingirard.dev@gmail.com>
Azalea (on HyDEV-Daisy) 2 lat temu
rodzic
commit
21e36f9a11
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      neofetch

+ 6 - 0
neofetch

@@ -988,6 +988,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 ;;