Oh My Posh needs at least go 1.16.
Clone your fork of Oh My Posh locally, replace
<user> with your Github username.
The go source code can be found in the
src/ directory, make sure to change to that one before continuing.
The easiest way to validate your changes is to write tests. Unfortunately, as it's a visual tool, you'll want to validate
the changes by running the prompt in your shell as well. You can make use of go's
bin folder which is usually added to
your path to add your own Oh My Posh binary to and immediately see the changes appear in your shell.
A default config(.vscode folder) for Visual Studio Code is available in the repo:
golangci-lint is configured as the default linter.
Recommended extensions available for a smooth bootstrap.
Default run and debug configurations available.
Once the extensions are installed:
- Debug can be started by hitting F5.
- All tests can be run using the Test explorer.
Delve config is restrictive by default(string limit especially). You can expand some limits in VS Code(
settings.json or directly in
With everything set up, you're ready to start making changes and create your first PR!