diff --git a/neofetch b/neofetch index 34a3020b..f888a745 100755 --- a/neofetch +++ b/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