浏览代码

Add long distro name for Manjaro Linux

Example: Manjaro Linux 21.1.0 Pahvo
Corentin Girard 4 年之前
父节点
当前提交
8967ab4200
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      neofetch

+ 6 - 0
neofetch

@@ -987,6 +987,12 @@ get_distro() {
                 . /etc/armbian-release
                 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
                 case $distro_shorthand in
                     on|tiny) distro=Siduction ;;