Skip to content

Instantly share code, notes, and snippets.

View brugos's full-sized avatar
🧐

Brugos brugos

🧐
  • 10:49 (UTC +01:00)
View GitHub Profile
@2xAA
2xAA / iterm-colors-to-vscode.js
Last active August 3, 2025 13:10
Convert iTerm2 "itermcolors" file to VSCode terminal color scheme
/* Generate colors using: `plutil -convert json` in your terminal */
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',