From eaee232a2f61ee243c36632bcdf6177ac21aeb60 Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Thu, 26 Dec 2024 14:26:06 +0500 Subject: [PATCH] fish: tweak fetch --- dot-config/fish/config.fish | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dot-config/fish/config.fish b/dot-config/fish/config.fish index b5c2bcf..8075fcb 100644 --- a/dot-config/fish/config.fish +++ b/dot-config/fish/config.fish @@ -11,9 +11,12 @@ function filesize end function _fetch - if which ufetch > /dev/null 2>&1 && [ "$VSCODE_INJECTION" != "1" ] - ufetch - end + if [ $(tput lines) -le 10 ] + return + end + if which ufetch > /dev/null 2>&1 && [ "$VSCODE_INJECTION" != "1" ] + ufetch + end end function _set_env