chisui / zsh-nix-shell

zsh plugin that lets you use zsh in nix-shell shells.
BSD 3-Clause "New" or "Revised" License
384 stars 19 forks source link

Shadowing shell.nix binary #32

Closed soulomoon closed 2 years ago

soulomoon commented 2 years ago

Issue description

I have some build tools binary to add in in my shell.nix. It shadows build tools in shell.nix script if zsh's initExtra export the path contains the same binary.

chisui commented 2 years ago

Yes, this is a current limitation that I don't know how to fix without great effort. A workaround is to only add the binaries to the path if IN_NIX_SHELL is not set.

Also see: #19