From 68c9933120f5dd7582242f3a2274de95d61e661d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 15 Dec 2016 20:55:07 +1100 Subject: [PATCH] Shell: Fixed memory leak caused by fish. Closes #531 --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 8621b6ed..f2d34bd0 100755 --- a/neofetch +++ b/neofetch @@ -522,7 +522,8 @@ get_shell() { ;; "fish") - shell+="$(fish -c 'printf "%s" "$FISH_VERSION"')" + shell+="$(fish --version)" + shell="${shell/fish, version}" ;; esac shell="${shell/\(*\)}"