Explorar o código

term: Fix wrapper scripts in NixOS. Thanks Tdeo.

Dylan Araps %!s(int64=6) %!d(string=hai) anos
pai
achega
4f727b1de3
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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