Last active
October 1, 2022 10:12
-
-
Save dima-iholkin/80d319f7a716faaa542bd926dfc9583e to your computer and use it in GitHub Desktop.
PowerShell Core : Add a Powerline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"newline": false, | |
"segments": [ | |
{ | |
"type": "time", | |
"style": "powerline", | |
"foreground": "#100e23", | |
"background": "#777777", | |
"properties": { | |
"time_format": "15:04" | |
} | |
}, | |
{ | |
"type": "session", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#100e23", | |
"background": "#A9A9A9", | |
"properties": { | |
"display_host": false | |
} | |
}, | |
{ | |
"type": "path", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#100e23", | |
"background": "#C0C0C0", | |
"properties": { | |
"home_icon": "\uF7DB", | |
"folder_icon": "\uF115", | |
"folder_separator_icon": " \uE0B1 ", | |
"style": "agnoster" | |
} | |
}, | |
{ | |
"type": "git", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#193549", | |
"background": "#dddddd" | |
} | |
] | |
} | |
], | |
"final_space": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#C0C0C0", | |
"foreground": "#FFFFFF", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"time_format": "15:04" | |
}, | |
"style": "powerline", | |
"template": " \uf64f {{ .CurrentDate | date .Format }} ", | |
"type": "time" | |
}, | |
{ | |
"background": "#A9A9A9", | |
"foreground": "#FFFFFF", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"folder_icon": "\uf115", | |
"folder_separator_icon": " \ue0b1 ", | |
"home_icon": "~", | |
"style": "agnoster_short" | |
}, | |
"style": "powerline", | |
"template": " {{ .Path }} ", | |
"type": "path" | |
}, | |
{ | |
"background": "#C0C0C0", | |
"foreground": "#FFFFFF", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"branch_icon": "\ue0a0 " | |
}, | |
"style": "powerline", | |
"template": " {{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} \uf692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} ", | |
"type": "git" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"final_space": true, | |
"version": 2 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oh-my-posh init pwsh --config C:\Users\dimic\AppData\Local\Programs\oh-my-posh\themes/Dima-v2.omp.json | Invoke-Expression |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment