From a98d96eb8c47fd5bd0fbaee4fb04978a658ca84d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 28 May 2016 14:01:44 +1000 Subject: [PATCH] Halve font width on iTerm2 --- neofetch | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index bf972fbc..c73e52a7 100755 --- a/neofetch +++ b/neofetch @@ -2207,7 +2207,12 @@ getimage () { columns=$(tput cols) # Calculate font size - font_width=$((term_width / columns)) + if [ "$os" == "Mac OS X" ]; then + font_width=$((term_width / columns)) + else + # Fixes padding issues in iTerm2. + font_width=$((term_width / columns / 2)) + fi # Image size is half of the terminal case "$image_size" in