nix-community / lorri

Your project’s nix-env [maintainer=@Profpatsch,@nyarly]
Apache License 2.0
677 stars 24 forks source link

Question: can I rid the right-side message? #81

Closed hedefalk closed 3 months ago

hedefalk commented 2 years ago

Feature description

When I paste cli logs I feel it's a bit annoying with the lorri-keep-env-hack-nix-shell:

🐟 file -I ~/Downloads/report.csv                                                                          lorri-keep-env-hack-nix-shell 
/Users/viktor/Downloads/report.csv: application/csv; charset=utf-8

Using fish. Have I missed some easy setting to rid this?

nyarly commented 2 years ago

Where is lorri-keep-env-hack-nix-shell coming from in the first place? I'd imagine somewhere in your fish_prompt.fish?

hedefalk commented 2 years ago

It's the derivation name - the string itself seems to come from here:

https://github.com/nix-community/lorri/blob/b84602c7132293e23eb8957ba493f188ce89ea1c/src/logged-evaluation.nix#L58

hedefalk commented 2 years ago

Ah, it's any-nix-shell that puts it there:

https://github.com/haslersn/any-nix-shell#customization

hedefalk commented 2 years ago

I revisited this now and I had two other tools involved:

Both default settings printed this derivation name as part of my prompt:

image

I can config both away with the side-effect of not seeing this info when I might want to, like on a manual nix-shell. The name is just a little annoying…? Maybe just "lorri"?

hedefalk commented 2 years ago

The green thing is any-nix-shell which I could rid by removing --info-right. The blue one I had already config'ed away from starship.rs default settings https://starship.rs/config/#nix-shell