feat(devcontainer): auto build oh-my-posh at creation

This commit is contained in:
Warren Buckley 2023-10-06 09:55:14 +00:00 committed by Jan De Dobbeleer
parent 4baeed8cc9
commit df07df9e35

View file

@ -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'\""
}