From d36b4360c9c359e6eea480b39e9699b1deae70f1 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 15 Apr 2024 15:59:20 -0400 Subject: Wrap bild log at the terminal-supplied width Apparently `$COLUMNS` is a POSIX standard, which allows us to set the print width to however wide the user's terminal is. This is a better UI on both wide and narrow terminal layouts: on very narrow layouts, the terminal will properly clear the line instead of doing the wrap-print thing it does when the line overflows, and on wide layouts you can see more of the log message if you're curious. This only works if you export `$COLUMNS` though, because bash only sets the variable in interactive mode, so by default a running program doesn't see it. --- .envrc | 1 + 1 file changed, 1 insertion(+) (limited to '.envrc') diff --git a/.envrc b/.envrc index 67b6b37..8fa2948 100644 --- a/.envrc +++ b/.envrc @@ -14,6 +14,7 @@ use nix # export CODEROOT=$PWD + export COLUMNS # # scripts for editing go here PATH_add $CODEROOT/Biz/Ide -- cgit v1.2.3