https://github.com/avestura/oh-my-posh-vi-mode
Oh My Posh + PowerShell Vi Mode
https://github.com/avestura/oh-my-posh-vi-mode
oh-my-posh powershell pwsh vi vim
Last synced: 3 months ago
JSON representation
Oh My Posh + PowerShell Vi Mode
- Host: GitHub
- URL: https://github.com/avestura/oh-my-posh-vi-mode
- Owner: avestura
- License: apache-2.0
- Created: 2024-08-06T04:23:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-11T09:25:51.000Z (8 months ago)
- Last Synced: 2025-05-14T05:23:46.863Z (6 months ago)
- Topics: oh-my-posh, powershell, pwsh, vi, vim
- Language: PowerShell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oh-my-posh-vi-mode
Oh My Posh + PowerShell Vi Mode
The theme in the theme folder adds this segment to the atomic theme:
```json
{
"type": "text",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#26C6DA",
"background": "#546E7A",
"background_templates": [
"{{if eq \"COM\" .Env.VI_MODE_SEGMENT}}#33DD2D{{end}}"
],
"template": "{{ .Env.VI_MODE_SEGMENT }}"
},
```
You'd need to add the script in `profile.ps1` to one of your profile scripts. e.g. `$PROFILE.AllUsersAllHosts`