Skip to content

Instantly share code, notes, and snippets.

@hagiyat
Last active March 25, 2017 16:59
Show Gist options
  • Save hagiyat/05bd581ab3f3d9f337aa652c337a4dcc to your computer and use it in GitHub Desktop.
Save hagiyat/05bd581ab3f3d9f337aa652c337a4dcc to your computer and use it in GitHub Desktop.
Converts the color scheme of Xresources defined in iTerm2-Color-Schemes to the termite color definition.
#!/usr/bin/env bash
IFS=$'\n';
for file in `ls ./iTerm2-Color-Schemes/Xresources`; do
cat "./iTerm2-Color-Schemes/Xresources/${file}" \
| sed -e 's/^\!/#/g' -e 's/^\*\.//g' -e 's/: / = /g' \
> "./termite-colors/${file}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment