diff --git a/src/cli/config_export_image.go b/src/cli/config_export_image.go index 191016bd66c0..56c3f56c2221 100644 --- a/src/cli/config_export_image.go +++ b/src/cli/config_export_image.go @@ -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) } diff --git a/website/docs/share-theme.md b/website/docs/share-theme.md index 1700a93fc45f..003c3d50eef7 100644 --- a/website/docs/share-theme.md +++ b/website/docs/share-theme.md @@ -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`