lorri icon indicating copy to clipboard operation
lorri copied to clipboard

Question: can I rid the right-side message?

Open hedefalk opened this issue 2 years ago • 5 comments

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?

hedefalk avatar Mar 29 '22 12:03 hedefalk

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

nyarly avatar Apr 07 '22 17:04 nyarly

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 avatar Apr 07 '22 19:04 hedefalk

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

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

hedefalk avatar Apr 07 '22 19:04 hedefalk

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

  • any-nix-shell
  • staryship.rs

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 avatar Apr 07 '22 19:04 hedefalk

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

hedefalk avatar Apr 07 '22 19:04 hedefalk