From 7ba4d4ddcf0987b93593479dceb3f9ebf22d3145 Mon Sep 17 00:00:00 2001 From: Tobias Frischmann Date: Wed, 23 Sep 2026 19:37:12 +0200 Subject: [PATCH] fix fastfetch not rendering --- shared/cli/shell.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shared/cli/shell.nix b/shared/cli/shell.nix index 6e0274f..8ddf0f8 100644 --- a/shared/cli/shell.nix +++ b/shared/cli/shell.nix @@ -20,7 +20,10 @@ programs.fish = { enable = true; interactiveShellInit = '' - if test $COLUMNS -ge 120; and test $LINES -ge 30 + set -l dimensions (stty size 2>/dev/null | string split ' ') + set -l rows $dimensions[1] + set -l cols $dimensions[2] + if test -n "$cols" -a "$cols" -ge 120 -a "$rows" -ge 30 fastfetch -l nixos2 --logo-padding-right 6 --separator " " --structure "break:break:title:break:os:kernel:packages:disk:shell:terminal:wm:uptime:media:break:colors" end -- 2.51.2