Last active
April 20, 2022 02:14
-
-
Save ariscript/a8c471021e975c59f906b936b9063438 to your computer and use it in GitHub Desktop.
Oh-my-posh prompt configuration
This file contains hidden or 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", | |
"final_space": false, | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"foreground": "#45F1C2", | |
"properties": { | |
"display_host": false, | |
"template": "\uf508 {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} on" | |
}, | |
"style": "plain", | |
"type": "session" | |
}, | |
{ | |
"foreground": "#45f1c2", | |
"properties": { | |
"template": " {{.Icon}} ", | |
"windows": "\uf17a", | |
"wsl": "", | |
"wsl_separator": "" | |
}, | |
"style": "plain", | |
"type": "os" | |
}, | |
{ | |
"foreground": "#0CA0D8", | |
"properties": { | |
"folder_icon": "...", | |
"folder_separator_icon": "/", | |
"max_depth": 2, | |
"style": "agnoster_short", | |
"template": "\uf07b {{ .Path }} " | |
}, | |
"style": "plain", | |
"type": "path" | |
}, | |
{ | |
"foreground": "#14A5AE", | |
"properties": { | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": true, | |
"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 }} " | |
}, | |
"style": "plain", | |
"type": "git" | |
}, | |
{ | |
"foreground": "#6FBC4F", | |
"properties": { | |
"display_mode": "files", | |
"fetch_package_manager": true, | |
"home_enabled": false, | |
"template": "\uf898 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " | |
}, | |
"style": "plain", | |
"type": "node" | |
}, | |
{ | |
"foreground": "#dea584", | |
"properties": { | |
"fetch_version": true, | |
"display_mode": "files", | |
"template": "\ue7a8 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" | |
}, | |
"style": "plain", | |
"type": "rust" | |
}, | |
{ | |
"foreground": "#396890", | |
"properties": { | |
"display_mode": "context", | |
"fetch_version": true, | |
"home_enabled": false, | |
"template": "\ue606 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} " | |
}, | |
"style": "plain", | |
"type": "python" | |
}, | |
{ | |
"foreground": "#7252aa", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": true, | |
"template": "\ue77f{{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} " | |
}, | |
"style": "plain", | |
"type": "dotnet" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"segments": [ | |
{ | |
"foreground": "#dbe919", | |
"properties": { | |
"template": "\ufa1e{{ .FormattedMs }} " | |
}, | |
"style": "powerline", | |
"type": "executiontime" | |
}, | |
{ | |
"foreground": "#d8274d", | |
"properties": { | |
"template": "\ue383 {{ .CurrentDate | date .Format }}" | |
}, | |
"style": "powerline", | |
"type": "time" | |
} | |
], | |
"type": "rprompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#42cd49", | |
"foreground_templates": [ | |
"{{ if gt .Code 0 }}#CD4277{{ end }}" | |
], | |
"properties": { | |
"always_enabled": true, | |
"template": "# " | |
}, | |
"style": "plain", | |
"type": "exit" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"console_title": true, | |
"version": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment