chore(devcontainer): use correct image and settings

This commit is contained in:
Jan De Dobbeleer 2024-06-04 10:54:55 +02:00 committed by Jan De Dobbeleer
parent acc884ccbd
commit 92927638bf
4 changed files with 4 additions and 13 deletions

View file

@ -52,9 +52,6 @@ RUN pwsh -Command Install-Module posh-git -Scope AllUsers -Force; \
# add the oh-my-posh path to the PATH variable # add the oh-my-posh path to the PATH variable
ENV PATH "$PATH:/home/${USERNAME}/bin" ENV PATH "$PATH:/home/${USERNAME}/bin"
# Can be used to override the devcontainer prompt default theme:
ENV POSH_THEME="/workspaces/oh-my-posh/themes/jandedobbeleer.omp.json"
# Deploy oh-my-posh prompt to Powershell: # Deploy oh-my-posh prompt to Powershell:
COPY Microsoft.PowerShell_profile.ps1 /home/${USERNAME}/.config/powershell/Microsoft.PowerShell_profile.ps1 COPY Microsoft.PowerShell_profile.ps1 /home/${USERNAME}/.config/powershell/Microsoft.PowerShell_profile.ps1

View file

@ -6,6 +6,4 @@ Import-Module Terminal-Icons
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
$env:POSH_GIT_ENABLED=$true $env:POSH_GIT_ENABLED=$true
oh-my-posh init pwsh --config $env:POSH_THEME | Invoke-Expression oh-my-posh init pwsh | Invoke-Expression
# NOTE: You can override the above env var from the devcontainer.json "args" under the "build" key.

View file

@ -1,4 +1,2 @@
# Activate oh-my-posh prompt: # Activate oh-my-posh prompt:
oh-my-posh init fish --config $POSH_THEME | source oh-my-posh init fish | source
# NOTE: You can override the above env vars from the devcontainer.json "args" under the "build" key.

View file

@ -8,10 +8,7 @@
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17 // Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
// Append -bullseye or -buster to pin to an OS version. // Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local arm64/Apple Silicon. // Use -bullseye variants on local arm64/Apple Silicon.
"VARIANT": "1-1.22.3-bullseye", "VARIANT": "1-1.22-bullseye",
// Options:
"POSH_THEME": "/workspaces/oh-my-posh/themes/jandedobbeleer.omp.json",
// Override me with your own timezone: // Override me with your own timezone:
"TZ": "UTC", "TZ": "UTC",
@ -54,6 +51,7 @@
"terminal.integrated.defaultProfile.linux": "pwsh", "terminal.integrated.defaultProfile.linux": "pwsh",
"terminal.integrated.defaultProfile.windows": "pwsh", "terminal.integrated.defaultProfile.windows": "pwsh",
"terminal.integrated.defaultProfile.osx": "pwsh", "terminal.integrated.defaultProfile.osx": "pwsh",
"terminal.integrated.shellIntegration.enabled": false,
"tasks.statusbar.default.hide": true "tasks.statusbar.default.hide": true
}, },
"extensions": [ "extensions": [