From ad4543a58e0f9ef06bd649f48afe65ece70f9d83 Mon Sep 17 00:00:00 2001 From: JOLIMAITRE Matthieu Date: Tue, 18 Jun 2024 04:02:45 +0200 Subject: [PATCH] add term colors --- data/home/.zprofile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/data/home/.zprofile b/data/home/.zprofile index e7101be..b9a7cc2 100644 --- a/data/home/.zprofile +++ b/data/home/.zprofile @@ -332,6 +332,9 @@ wait_file() { done } - -alias sshpinotes="TERM=xterm-color ssh ubuntu@162.19.64.118" -alias mrustc="MRUSTC_TARGET_VER=1.54 /home/mb/Projects/mrustc/bin/mrustc -L /home/mb/Projects/mrustc/output-1.54.0" +term256_colors() { + for i in {0..255} + do + print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'} + done +}