Skip to content

Commit

Permalink
Merge pull request basecamp#289 from justinhhorner/fix-vscode-set-the…
Browse files Browse the repository at this point in the history
…me-error

Check for VS Code before setting theme
  • Loading branch information
dhh authored Oct 2, 2024
2 parents 30597f3 + 7a2e291 commit 34fb6b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions themes/set-vscode-theme.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
code --install-extension $VSC_EXTENSION >/dev/null
sed -i "s/\"workbench.colorTheme\": \".*\"/\"workbench.colorTheme\": \"$VSC_THEME\"/g" ~/.config/Code/User/settings.json
if command -v code &>/dev/null; then
code --install-extension $VSC_EXTENSION >/dev/null
sed -i "s/\"workbench.colorTheme\": \".*\"/\"workbench.colorTheme\": \"$VSC_THEME\"/g" ~/.config/Code/User/settings.json
fi

0 comments on commit 34fb6b8

Please sign in to comment.