From 7443f9a2bc5acd9f521be6ca1e68e22bb614b756 Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Thu, 26 Dec 2024 14:26:06 +0500 Subject: [PATCH] fish: tweak fetch --- config.fish | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config.fish b/config.fish index b5c2bcf..8075fcb 100644 --- a/config.fish +++ b/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