Closed kubilayerislik closed 1 year ago
@kubilayerislik this isn't a bug in oh-my-posh but probably conda removing all custom prompt functions. Did you add this BEFORE or AFTER initializing oh-my-posh in your $profile
?
I change my conda initialize before oh-my-posh. It works thanks for helping.
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
I am using oh-my-posh v:12.3.3 in windows powershell wih anaconda.
When i try to remove conda env name display like in FAQ.
conda config --set changeps1 False
My oh-my-posh not starting in powershell.
When i try reload my $Profile oh-my-posh working. But when i restart powershell again oh-my-posh not working.
oh-my-posh --init --shell pwsh --config C:\Users\'Harley V2.0'\.config\powershell\HarleyV2.omp.json | Invoke-Expression
Theme
{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "alignment": "left", "segments": [ { "background": "#0077c2", "foreground": "#ffffff", "leading_diamond": "\u256d\u2500\ue0b6", "style": "diamond", "template": "{{if .Root}} \uf0e7 {{.UserName}} {{else}} {{.UserName}} {{end}}", "type": "session" }, { "background": "#91ddff", "foreground": "#100e23", "powerline_symbol": "\ue0b0", "properties": { "display_mode": "environment", "fetch_virtual_env": true, "home_enabled": true }, "style": "diamond", "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", "type": "python" }, { "background": "#ef5350", "foreground": "#FFFB38", "properties": { "root_icon": "\uf292" }, "style": "diamond", "template": "\ue0b0</> \uf0e7 ",
"type": "root"
},
{
"background": "#444444",
"foreground": "#E4E4E4",
"powerline_symbol": "\ue0b0",
"properties": {
"style": "full"
},
"style": "powerline",
"template": " {{ .Path }} ",
"type": "path"
},
{
"background": "#FFFB38",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}",
"{{ if gt .Ahead 0 }}#C792EA{{ end }}",
"{{ if gt .Behind 0 }}#C792EA{{ end }}"
],
"foreground": "#011627",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_icon": "\ue725 ",
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": " {{ .HEAD }} {{ if .Working.Changed }}{{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}</>{{ end }} ",
"type": "git"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
], "version": 2 }
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output