File tree 1 file changed +30
-2
lines changed
1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Install
4
4
5
- 1 . Install, [ Oh My Posh] ( https://ohmyposh.dev/ )
6
- 2 . Run the following command (_ changing the path_ )
5
+ Steps to install, [ Oh My Posh] ( https://ohmyposh.dev/ )
6
+
7
+ Be sure to uninstall, "Posh-GIT", ` uninstall-module posh-git `
8
+
9
+ 1 . ` winget search oh-my-posh `
10
+ 2 . ` winget install JanDeDobbeleer.OhMyPosh `
11
+ 3 . ` oh-my-posh font install `
12
+ 4 . Set it to, "M???"
13
+ 5 . ` oh-my-posh get shell `
14
+ 6 . Get the PowerShell config path, ` $profile `
15
+ 7 . Initialize and set the theme in the next step, "Set Our Theme"
16
+
17
+ ## Set Our Theme
18
+
19
+ 1 . Run the following command (_ changing the path_ )
7
20
8
21
``` powershell
9
22
oh-my-posh init pwsh --config "C:\PATH-TO\lib\omp-themes\xeno-clean.omp.json" | Invoke-Expression
10
23
```
24
+
25
+ ## Commands
26
+
27
+ * Get list of themes, ` Get-PoshThemes `
28
+ * Export current theme, ` oh-my-posh config export --output ~\mytheme.omp.json `
29
+ * Change Theme for session, ` oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\kali.omp.json" | Invoke-Expression `
30
+ * ` Get-PSReadLineOption `
31
+
32
+ ## Other themes
33
+
34
+ ``` powershell
35
+ oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\kali.omp.json" | Invoke-Expression
36
+ oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\hul10.omp.json" | Invoke-Expression
37
+ oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\agnoster.minimal.omp.json" | Invoke-Expression
38
+ ```
You can’t perform that action at this time.
0 commit comments