FabioAntunes / fish-nvm

nvm wrapper for fish-shell
MIT License
509 stars 20 forks source link

Suppress `nvm_alias_command` prints #66

Closed titolins closed 7 months ago

titolins commented 7 months ago

Hey there, first of all thanks for the great plugin 😄

This is a minor issue, but it is a bit annoying given it happens on every new prompt.

I'm using nvim, so I've added the nvm_alias_command to my config.fish file to have the binaries linked to my PATH.

And this is working great, with one caveat. Once the executables are created, all subsequent terminals I open have this Ignored: ... (already exists) prints. Is there a way to suppress those?

Tks!

EDIT: Adding a screenshot for reference Screenshot 2024-02-06 at 13 09 12

titolins commented 7 months ago

I realised I could just redirect stdout to achieve that: nvm_alias_command > /dev/null Tks anyways 👍

FabioAntunes commented 7 months ago

Hey @ttlins glad that you found a solution, but in theory you should not have this in your config.fish. You only run once and that's it.

titolins commented 7 months ago

Ah, that makes sense 😅 Obrigado 🙏