JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
16.54k stars 2.32k forks source link

oh-my-posh on NixOS fails with Nu shell #5230

Closed aspauldingcode closed 1 month ago

aspauldingcode commented 1 month ago

Code of Conduct

What happened?

A bug happened!

When enabling nixos oh-my-posh Nu shell integration.

The following config breaks it: oh-my-posh.enableNushellIntegration = true;

Versions: NixOS: 24.05 nixpkgs: 24.05 stable oh-my-posh: 19.29.0

Using Alacritty Terminal.

Theme

default.

What OS are you seeing the problem on?

Linux, macOS

Which shell are you using?

nu

Log output

 alex  nu
Error: nu::shell::column_not_found

  × Cannot find column
   ╭─[/home/alex/.cache/oh-my-posh/init.nu:1:16]
 1 │ $env.config = ($env.config | upsert render_right_prompt_on_last_line true)
   ·                ──┬─ ───┬──
   ·                  │     ╰── cannot find column 'config'
   ·                  ╰── value originates here
 2 │
   ╰────

     __  ,
 .--()°'.' Welcome to Nushell,
'|, . ,'   based on the nu language,
 !_-(_\    where all data is structured!

Please join our Discord community at https://discord.gg/NtAbbGn
Our GitHub repository is at https://github.com/nushell/nushell
Our Documentation is located at https://nushell.sh
Tweet us at @nu_shell
Learn how to remove this at: https://nushell.sh/book/configuration.html#remove-welcome-message

It's been this long since Nushell's first commit:
5yrs 1month 29days 7hrs 16mins 58secs 608ms 227µs 603ns

Startup Time: 29ms 135µs 106ns

/home/alex>                                                                                                       07/08/2024 06:16:10 PM
JanDeDobbeleer commented 1 month ago

@aspauldingcode confirmed, nushell adjusted something on their end.

JanDeDobbeleer commented 1 month ago

relates to https://github.com/nushell/nushell/issues/13071