From 65c2854cafacf1f76bf2ce40ffac523c0823d457 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 16 Jun 2016 17:19:00 +1000 Subject: [PATCH] Make --image off behave like other modes --- neofetch | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/neofetch b/neofetch index c757a580..c4c42036 100755 --- a/neofetch +++ b/neofetch @@ -3286,16 +3286,16 @@ getdistro bold colors +# If the script exits for any reason, unhide the cursor. +trap 'printf "\033[?25h"' EXIT + +# Clear the scren +clear + +# Hide the cursor +printf "\033[?25l" + if [ "$image" != "off" ]; then - # If the script exits for any reason, unhide the cursor. - trap 'printf "\033[?25h"' EXIT - - # Clear the scren - clear - - # Hide the cursor - printf "\033[?25l" - # If iterm2 is detected use iterm2 backend. if [ -n "$ITERM_PROFILE" ]; then image_backend="iterm2"