Skip to content

Commit ea9b706

Browse files
authored
✨ feat: macos-vscode (#61)
2 parents c553772 + 12aa7c9 commit ea9b706

13 files changed

Lines changed: 1095 additions & 118 deletions

File tree

.github/workflows/test_macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
"macos-terminal",
6060
"macos-touch-id-sudo",
6161
"macos-tower",
62+
"macos-vscode",
6263
# "macos-xcode", # mas can't run without login on GitHub Actions
6364
"macos-zsh",
6465
"micro",

brewfiles/app-dev.Brewfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# macos-iterm
2+
# macos-sublime
23
# macos-tower
4+
# macos-vscode
35
# macos-xcode
4-
# macos-sublime
56
cask "hex-fiend"
67
cask "jupyter-notebook-viewer"
78
cask "kaleidoscope"
89
cask "postman"
9-
cask "visual-studio-code"

makefiles/macos.mk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ macos-app-private: macos-brew macos-app-dev macos-one-password macos-appcleaner
2626
macos-app-work: macos-brew macos-app-dev macos-appcleaner macos-alfred macos-popclip
2727
brew bundle --file brewfiles/app-essential.Brewfile
2828

29-
macos-app-dev: git macos-brew macos-iterm macos-sublime macos-terminal macos-xcode
29+
macos-app-dev: git macos-brew macos-iterm macos-sublime macos-terminal macos-vscode macos-xcode
3030
brew bundle --file brewfiles/app-dev.Brewfile
3131

3232
###############################################################################
@@ -88,6 +88,10 @@ macos-tower: macos-brew macos-git
8888
brew install --cask tower
8989
xscript "pkg/macos-tower/macos-tower.sh"
9090

91+
macos-vscode: macos-brew
92+
brew install --cask visual-studio-code
93+
xscript "pkg/vscode/macos-vscode.sh"
94+
9195
macos-xcode: macos-brew
9296
brew bundle --file brewfiles/xcode.Brewfile
9397

pkg/vscode/macos-vscode.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
# Create preferred directories
5+
PREFERENCES_DIR="${HOME}/Library/Application Support/Code/User"
6+
mkdir -p "${PREFERENCES_DIR}"
7+
8+
# Stow preferences
9+
stow --no-folding --dir 'pkg/vscode' --target "${PREFERENCES_DIR}" 'stow'

0 commit comments

Comments
 (0)