From b45fd953c171bda74d8e201ce6822570467c1d68 Mon Sep 17 00:00:00 2001 From: rutexd <112971914+rutexd@users.noreply.github.com> Date: Mon, 3 Feb 2025 23:58:47 +0100 Subject: [PATCH] Oneliner script to set tab color in a Windows Terminal (#1031) Simple oneliner script to set color for Windows Terminal. --------- Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com> --- sourced/cool-oneliners/wt_color.nu | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 sourced/cool-oneliners/wt_color.nu diff --git a/sourced/cool-oneliners/wt_color.nu b/sourced/cool-oneliners/wt_color.nu new file mode 100644 index 0000000..d59aa5e --- /dev/null +++ b/sourced/cool-oneliners/wt_color.nu @@ -0,0 +1,2 @@ +# Simple script that sets color of a windows terminal (https://github.com/microsoft/terminal). +def set-tab-color [idx: int] { ansi -e ( ["2;15;", ($idx | into string), (",|") ] | str join ) }