This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # setup-git-vscode.sh — Configure git + shell to use VS Code as the editor. | |
| # | |
| # What it does: | |
| # - Appends EDITOR/VISUAL exports to ~/.zshrc (idempotent, marker-guarded) | |
| # - Sets git global: user.name, user.email, core.editor, diff/merge tool = VS Code | |
| # | |
| # Nothing else is touched. No workflow opinions (pull.rebase, default branch, etc.). | |
| # | |
| # Run it directly from the gist: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| vscode-to-iterm2.py — Generate an iTerm2 Dynamic Profile from your VS Code themes. | |
| Reads VS Code settings.json to discover: | |
| - Font family & size | |
| - Preferred dark and light color themes | |
| Then locates the theme extension files, extracts terminal colors, | |
| writes an iTerm2 Dynamic Profile that follows macOS appearance switching, | |
| and sets it as the default iTerm2 profile. |