mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
chore: doc updated(Get an editor)
This commit is contained in:
parent
36e69a1f7e
commit
9013a5b3d4
|
@ -65,8 +65,8 @@ Make sure to remove this before submitting a PR as there's [a check][pr-go-mod]
|
||||||
|
|
||||||
## Get the source code
|
## Get the source code
|
||||||
|
|
||||||
The source is hosted on [Github][omp]. When you want to contribute, create a [fork][gh-fork] so you can make changes in your repository
|
The source is hosted on [Github][omp]. When you want to contribute, create a [fork][gh-fork] so you can make changes in
|
||||||
and create pull request in the official Oh my Posh repository.
|
your repository and create pull request in the official Oh my Posh repository.
|
||||||
|
|
||||||
Clone your fork of Oh my Posh locally, replace `<user>` with your Github username.
|
Clone your fork of Oh my Posh locally, replace `<user>` with your Github username.
|
||||||
|
|
||||||
|
@ -108,6 +108,21 @@ your path to add your own Oh my Posh binary to and immediately see the changes a
|
||||||
go build -o $GOPATH/bin/oh-my-posh
|
go build -o $GOPATH/bin/oh-my-posh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Get an editor
|
||||||
|
|
||||||
|
A default config(.vscode folder) for [Visual Studio Code](https://code.visualstudio.com) 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.
|
||||||
|
|
||||||
## Up Next
|
## Up Next
|
||||||
|
|
||||||
With everything set up, you're ready to start making changes and create your first [PR][gh-pr]!
|
With everything set up, you're ready to start making changes and create your first [PR][gh-pr]!
|
||||||
|
|
BIN
docs/docs/recommended_extensions.png
Normal file
BIN
docs/docs/recommended_extensions.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 102 KiB |
|
@ -204,8 +204,8 @@ func (e *engine) debug() {
|
||||||
segmentTiming.stringDuration = time.Since(start)
|
segmentTiming.stringDuration = time.Since(start)
|
||||||
|
|
||||||
// not pretty rendering could be refactored for a better separation of concern
|
// not pretty rendering could be refactored for a better separation of concern
|
||||||
e.previousActiveSegment = nil
|
|
||||||
e.activeSegment = segment
|
e.activeSegment = segment
|
||||||
|
e.endPowerline()
|
||||||
e.activeSegment.Background = segment.props.background
|
e.activeSegment.Background = segment.props.background
|
||||||
e.activeSegment.Foreground = segment.props.foreground
|
e.activeSegment.Foreground = segment.props.foreground
|
||||||
e.renderSegmentText(segmentTiming.stringValue)
|
e.renderSegmentText(segmentTiming.stringValue)
|
||||||
|
|
|
@ -154,9 +154,9 @@ func main() {
|
||||||
|
|
||||||
if *args.Debug {
|
if *args.Debug {
|
||||||
engine.debug()
|
engine.debug()
|
||||||
} else {
|
return
|
||||||
engine.render()
|
|
||||||
}
|
}
|
||||||
|
engine.render()
|
||||||
}
|
}
|
||||||
|
|
||||||
func initShell(shell, config string) string {
|
func initShell(shell, config string) string {
|
||||||
|
|
Loading…
Reference in a new issue