Nushell Env Config Error #5944
Replies: 4 comments 1 reply
-
@berensn which nushell version is this? I'm using it fulltime myself but don't see this error. |
Beta Was this translation helpful? Give feedback.
-
@berensn your Oh My Posh version is |
Beta Was this translation helpful? Give feedback.
-
So in zsh, my other shell, the brew path is set in .zshrc using 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' allowing me to user brew in zsh. In nu, to use brew to update Oh-My-Posh I set the env.path to brews location, but it was only worked for the session. Is there a way to change the prompt indicator from the vertical bar to something like a block or blinking block? |
Beta Was this translation helpful? Give feedback.
-
Alright, thanks. |
Beta Was this translation helpful? Give feedback.
-
Code of Conduct
What happened?
After installing nushell Oh-My-Posh fails to load properly, throwing a config error regarding powerline
Here is the .oh-my-posh.nu file
Line 2 is the problem, I can't edit it directly as it just changes back every time the terminal is restarted. What do I need to add to the env.nu file to set line 2 properly?
Also line 4, what values can be defined for that and what do I need to add to the env.nu file to set it properly?
Oh-My-Posh runs fine in my zsh shell, which indicates that Oh-My-Posh itself is not the issue, its nushell that is the issue.
Theme
`{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"style": "plain",
"type": "text",
"template": "
"
}
],
"type": "prompt"
},
{
"alignment": "left",
"segments": [
{
"background": "#a313a8",
"foreground": "#b8aec8",
"style": "plain",
"template": "\u26a1 ",
"type": "root"
},
{
"background": "#d30cb8",
"foreground": "#270633",
"leading_diamond": "\ue0c7",
"properties": {
"folder_icon": "\uf6d7",
"folder_separator_icon": " \ue0bd </>",
"home_icon": "\uf7db",
"style": "agnoster_short"
},
"style": "diamond",
"template": " \ue0bd\ue0bd</> {{ .PWD }} ",
"trailing_diamond": "\ue0bc",
"type": "path"
},
{
"background": "#5da4a6",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#6df1d8{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#5da4a6{{ end }}",
"{{ if gt .Ahead 0 }}#5da4a6{{ end }}",
"{{ if gt .Behind 0 }}#5da4a6{{ end }}"
],
"foreground": "#000000",
"leading_diamond": "\ue0ba",
"properties": {
"branch_icon": "\ue725 ",
"fetch_stash_count": true,
"fetch_status": true
},
"style": "diamond",
"template": "\ue0bd\ue0bd</> {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}</>{{ end }} ",
"trailing_diamond": "\ue0bc",
"type": "git"
},
{
"background": "#3c345c",
"foreground": "#b8aec8",
"leading_diamond": "\ue0ba",
"properties": {
"style": "dallas",
"threshold": 0
},
"style": "diamond",
"template": "\ue0bd\ue0bd</> {{ .FormattedMs }}s",
"trailing_diamond": "\ue0c6",
"type": "executiontime"
},
{
"background": "#910000",
"foreground": "#ffffff",
"leading_diamond": " \ue0b2",
"style": "diamond",
"template": "\ue0b3 \uf12a</> {{ .Meaning }} \ue0b1</>",
"trailing_diamond": "\ue0b0",
"type": "exit"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"background": "#29315A",
"foreground": "#43CCEA",
"leading_diamond": "\ue0c7",
"style": "diamond",
"template": " {{ .UserName }} ",
"type": "session"
},
{
"background": "#29315A",
"foreground": "#3EC669",
"style": "diamond",
"properties": {
"time_format": "15:04:05" //"Mon 2-Jan-2006 15:04:05-0700"
},
"template": "\ue0bd\ue0bd</> {{ .CurrentDate | date .Format }} ",
"trailing_diamond": "\ue0c6",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#f718ff",
"foreground_templates": [
"{{ if gt .Code 0 }}#ff0000{{ end }}"
],
"properties": {
"always_enabled": true
},
"style": "plain",
"template": ":\ue0bd\ue0bd \u25bd ",
"type": "exit"
}
],
"type": "prompt"
}
}`
What OS are you seeing the problem on?
Linux
Which shell are you using?
nu
Log output
Beta Was this translation helpful? Give feedback.
All reactions