From 2caec13bf3f66d516d839e01f57cf706a13440fc Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 12 Jun 2019 20:35:04 +0300 Subject: [PATCH] term: Fix wrapper scripts in NixOS. Thanks Tdeo. --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 62a420f1..34a3020b 100755 --- a/neofetch +++ b/neofetch @@ -2887,9 +2887,9 @@ get_term() { term="${name##*/}" # Fix wrapper names in NixOS. - [[ "$term" == .*-wrapped ]] && { + [[ "$term" == .*-wrap* ]] && { term="${term#.}" - term="${term%-wrapped}" + term="${term%-wrap*}" } ;; esac