mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-29 04:49:39 -08:00
29 lines
944 B
Markdown
29 lines
944 B
Markdown
---
|
|
id: share
|
|
title: Share theme
|
|
sidebar_label: 📸 Share theme
|
|
---
|
|
|
|
You can export your prompt to an image which you can share online. You have the ability to align
|
|
it correctly and add your name for credits too.
|
|
|
|
:::caution
|
|
Some glyphs aren't rendered correctly, that's not you but the limitations of the renderer.
|
|
Depending on your config, you might have to tweak the output a little bit.
|
|
:::
|
|
|
|
The oh-my-posh executable has the `config export image` command to export your current theme configuration
|
|
to an image file (.png).
|
|
|
|
```powershell
|
|
oh-my-posh config export image
|
|
```
|
|
|
|
There are a couple of additional flags you can use to tweak the image rendering:
|
|
|
|
- `--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`
|