Skip to content

Commit

Permalink
Fixes 0xProto Font in devcontainer (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
djschleen authored Feb 29, 2024
1 parent bd9d2b8 commit 79b5dc7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.fontFamily": "Cascadia Code",
"terminal.integrated.customGlyphs": true,
"terminal.integrated.fontFamily": "'0xProto Nerd Font', 'Droid Sans Mono', 'monospace', monospace",
"editor.formatOnSave": true,
"go.buildTags": "",
"go.toolsEnvVars": {
Expand Down Expand Up @@ -65,5 +66,5 @@
]
}
},
"postCreateCommand": "/usr/bin/zsh ./.devcontainer/post-create.sh > ~/post-create.log"
"postCreateCommand": "/usr/bin/bash ./.devcontainer/post-create.sh > ~/post-create.log"
}
8 changes: 4 additions & 4 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mkdir -p $HOME/.local/share/fonts
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/CascadiaCode.zip
unzip CascadiaCode.zip -d $HOME/.local/share/fonts
rm CascadiaCode.zip
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/0xProto.zip
unzip 0xProto.zip -d $HOME/.local/share/fonts
rm 0xProto.zip

go mod download && go mod tidy
starship preset nerd-font-symbols -o ~/.config/starship.toml
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,7 @@
"vulns",
"Warningf"
],
"aws.codeWhisperer.shareCodeWhispererContentWithAWS": false
"aws.codeWhisperer.shareCodeWhispererContentWithAWS": false,
"terminal.integrated.customGlyphs": true,
"terminal.integrated.fontFamily": "'0xProto Nerd Font', 'Droid Sans Mono', 'monospace', monospace"
}

0 comments on commit 79b5dc7

Please sign in to comment.