Skip to content

Instantly share code, notes, and snippets.

View brugos's full-sized avatar
🧐

Brugos brugos

🧐
View GitHub Profile
@2xAA
2xAA / iterm-colors-to-vscode.js
Last active March 20, 2024 07:36
Convert iTerm2 "itermcolors" file to VSCode terminal color scheme
/* Generate colors using https://github.com/andreyvit/plist-to-json */
const col = [] // run your .itermcolors file through the above parser and replace the array with the output
function componentToHex(c) {
const hex = c.toString(16)
return hex.length === 1 ? `0${hex}` : hex
}
const mapping = {
'terminal.background':'Background Color',