Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
sylus committed Feb 23, 2024
1 parent 439e928 commit 72fd80e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@
# Install XCode
xcode-select -p >/dev/null 2>&1 || xcode-select --install

{{- if .host.headless }}
# Install Visual Studio Code
curl -fsSL -o vscode.zip https://code.visualstudio.com/sha/download?build=stable\&os=darwin-universal
unzip -q vscode.zip
rm vscode.zip
mv "Visual Studio Code.app" /Applications/
ln -s "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" /usr/local/bin/code
{{- end }}

if ! command -v brew >/dev/null 2>&1; then
echo "Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

{{ if eq .host.arch "arm64" -}}
{{- if eq .host.arch "arm64" }}
eval $(/opt/homebrew/bin/brew shellenv)
{{- else }}
eval $(/usr/local/bin/brew shellenv)
Expand Down
1 change: 1 addition & 0 deletions home/.chezmoitemplates/darwin/brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"qlstephen"
"slack"
"spectacle"
"visual-studio-code"
-}}

{{- range ($taps | sortAlpha | uniq) }}
Expand Down
7 changes: 0 additions & 7 deletions home/private_dot_config/zsh/dot_zshrc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,6 @@ export NVM_DIR="$HOME/.nvm"

ln -sf "$(brew --prefix)/bin/python"{3,}

{{ if eq .chezmoi.os "darwin" -}}
# Visual Studio Code Configuration
# -----------------------------------------------------------------------------

# Add Visual Studio Code (code)
export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
{{- end }}

# Includes
# -----------------------------------------------------------------------------
Expand Down

0 comments on commit 72fd80e

Please sign in to comment.