lorri
lorri copied to clipboard
Question: can I rid the right-side message?
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?
Where is lorri-keep-env-hack-nix-shell
coming from in the first place? I'd imagine somewhere in your fish_prompt.fish
?
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
Ah, it's any-nix-shell that puts it there:
https://github.com/haslersn/any-nix-shell#customization
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:

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"?
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