Skip to content

Commit

Permalink
docs(export): remove deprecated flags
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Mar 14, 2024
1 parent a7c60c3 commit a8f97f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/cli/config_export_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ Exports the config to an image file using customized output options.`,
func init() { //nolint:gochecknoinits
imageCmd.Flags().StringVar(&author, "author", "", "config author")
imageCmd.Flags().StringVar(&bgColor, "background-color", "", "image background color")
// imageCmd.Flags().IntVar(&cursorPadding, "cursor-padding", 0, "prompt cursor padding")
// imageCmd.Flags().IntVar(&rPromptOffset, "rprompt-offset", 0, "right prompt offset")
imageCmd.Flags().StringVarP(&outputImage, "output", "o", "", "image file (.png) to export to")
exportCmd.AddCommand(imageCmd)
}
5 changes: 2 additions & 3 deletions website/docs/share-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ The oh-my-posh executable has the `config export image` command to export your c
to an image file (.png).

```powershell
oh-my-posh config export image --cursor-padding 50
oh-my-posh config export image
```

There are a couple of additional flags you can use to tweak the image rendering:

- `--cursor-padding`: spaces to add after the cursor indication (`_`)
- `--rprompt-offset`: spaces to add **before** a block that's right aligned
- `--author`: the name of the creator, added after `ohmyposh.dev`
- `--background-color`: the hex background color to use (e.g. `#222222`)
- `--output`: the file to export to (e.g. `theme.png`)

For all options, and additional examples, use `oh-my-posh config export image --help`

0 comments on commit a8f97f5

Please sign in to comment.