aboutsummaryrefslogtreecommitdiff
path: root/kitty/kitty-themes/.tools/extract-vscode.sh
blob: 71a69305ddbb0532989e10791b29b0555340ea34 (plain)
1
2
3
4
5
#!/usr/bin/env bash

theme=$1

jq  ".colors | to_entries | map(select(.key | match(\"terminal.*\"))) | map({(.key | gsub(\"\\\\.(?<a>.)\"; .a | ascii_upcase) | ltrimstr(\"terminal\") | sub(\"(?<a>.)\"; .a | ascii_downcase)):.value}) | add" < "$theme" > "terminal/${theme%.*}.json"