fish: tweak fetch

This commit is contained in:
timoxa0 2024-12-26 14:26:06 +05:00
parent cddcb06d10
commit 7443f9a2bc

View file

@ -11,9 +11,12 @@ function filesize
end end
function _fetch function _fetch
if which ufetch > /dev/null 2>&1 && [ "$VSCODE_INJECTION" != "1" ] if [ $(tput lines) -le 10 ]
ufetch return
end end
if which ufetch > /dev/null 2>&1 && [ "$VSCODE_INJECTION" != "1" ]
ufetch
end
end end
function _set_env function _set_env