mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
Halve font width on iTerm2
This commit is contained in:
7
neofetch
7
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
|
||||
|
Reference in New Issue
Block a user