浏览代码

term: Fix wrapper scripts in NixOS. Thanks Tdeo.

Dylan Araps 6 年之前
父节点
当前提交
4f727b1de3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      neofetch

+ 2 - 2
neofetch

@@ -2887,9 +2887,9 @@ get_term() {
                 term="${name##*/}"
 
                 # Fix wrapper names in NixOS.
-                [[ "$term" == .*-wrap* ]] && {
+                [[ "$distro" == NixOS* && $term == .*-* ]] && {
                    term="${term#.}"
-                   term="${term%-wrap*}"
+                   term="${term%-*}"
                 }
             ;;
         esac