You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 16, 2021. It is now read-only.
`Set-Theme`: set a theme from the Themes directory. If no match is found, it will not be changed. Autocomplete is available to list and complete available themes.
148
+
`Set-Theme`: set a theme from the Themes directory. If no match is found, it will not be changed. Autocomplete is available to list and complete available themes.
149
149
150
150
```powershell
151
151
Set-Theme paradox
@@ -218,13 +218,17 @@ Set-Theme paradox
218
218
219
219
![Emodipt Theme][img-theme-emodipt]
220
220
221
+
### Operator
222
+
223
+
![Operator Theme][img-theme-operator]
224
+
221
225
## Creating your own theme
222
226
223
227
If you want to create a theme it can be done rather easily by adding a `mytheme.psm1` file in the folder indicated in `$ThemeSettings.MyThemesLocation` (the folder defaults to `~\Documents\WindowsPowerShell\PoshThemes`, feel free to change it).
224
228
225
229
The only required function is `Write-Theme`. You can use the following template to get started:
226
230
227
-
````powershell
231
+
```powershell
228
232
#requires -Version 2 -Modules posh-git
229
233
230
234
function Write-Theme
@@ -240,7 +244,7 @@ function Write-Theme
240
244
}
241
245
242
246
$sl = $global:ThemeSettings #local settings
243
-
````
247
+
```
244
248
245
249
Feel free to use the public helper functions `Get-VCSStatus`, `Get-VcsInfo`, `Get-FormattedRootLocation`, `Get-ShortPath`, `Set-CursorForRightBlockWrite`, `Set-CursorUp`, `Set-Newline` or add your own logic completely.
0 commit comments