diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c92ade19..d029c0a9 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -73,5 +73,9 @@ } }, // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. - "remoteUser": "vscode" + "remoteUser": "vscode", + // This is running the same command as the VSCode Task 'devcontainer: rebuild oh-my-posh' + // It Compiles *oh-my-posh* from this repo while **overwriting** your preinstalled stable release.' + // Ideal for getting straight into developing & testing whilst using a devcontainer + "updateContentCommand": "cd src && go build -v -buildvcs=false -o /home/vscode/bin/oh-my-posh -ldflags \"-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=development-$(git --no-pager log -1 --pretty=%h-%s)' -extldflags '-static'\"" }