From 7619944b737c4e94602567cb7d152ad20c3ce4e0 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 22 May 2024 12:00:04 -0500 Subject: [PATCH] add convience function for colors --- home/private_dot_config/zsh/functions/256colors | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 home/private_dot_config/zsh/functions/256colors diff --git a/home/private_dot_config/zsh/functions/256colors b/home/private_dot_config/zsh/functions/256colors new file mode 100644 index 0000000..2f29b7b --- /dev/null +++ b/home/private_dot_config/zsh/functions/256colors @@ -0,0 +1,4 @@ +#!/usr/bin/env zsh + +# from powerlevel10k config file +for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done