From 22a17f1fd194fd99b3d210e12311d753c1c7aaec Mon Sep 17 00:00:00 2001 From: DJ Schleen Date: Thu, 29 Feb 2024 23:53:32 +0000 Subject: [PATCH] Fixes 0xProto Font in devcontainer --- .devcontainer/devcontainer.json | 5 +++-- .devcontainer/post-create.sh | 8 ++++---- .vscode/settings.json | 4 +++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 01962fd..25d7590 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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": { @@ -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" } \ No newline at end of file diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index 778912a..0d34f7a 100644 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -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 diff --git a/.vscode/settings.json b/.vscode/settings.json index 3176225..3981274 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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" } \ No newline at end of file