haslersn / any-nix-shell

fish and zsh support for the nix run and nix-shell environments of the Nix package manager
MIT License
265 stars 17 forks source link

Restore stable Nix compatibility #8

Closed alyssais closed 3 years ago

alyssais commented 3 years ago

Stable Nix doesn't have nix shell, which means the most recent update broke any-nix-shell for people using the defaults.

Here, I've added a simple version check to restore the old behaviour on Nix versions that don't have nix shell.