소스 검색

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