diff --git a/neofetch b/neofetch index d02c0191..62a420f1 100755 --- a/neofetch +++ b/neofetch @@ -2882,7 +2882,16 @@ get_term() { "urxvtd") term="urxvt" ;; *"nvim") term="Neovim Terminal" ;; *"NeoVimServer"*) term="VimR Terminal" ;; - *) term="${name##*/}" ;; + + *) + term="${name##*/}" + + # Fix wrapper names in NixOS. + [[ "$term" == .*-wrapped ]] && { + term="${term#.}" + term="${term%-wrapped}" + } + ;; esac done