nix: fish+starship: hack the new style nix shell with a env variable

This commit is contained in:
Primrose 2024-07-18 02:13:59 +02:00
parent e3c3cdf7f2
commit a82fe4c076
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 1 additions and 3 deletions

View file

@ -4,7 +4,7 @@ function ,
set -a ps "nixpkgs#$p"
end
set cmd "nix shell $ps"
set cmd "IN_NIX_SHELL=\"impure\" nix shell $ps"
echo "Executing `$cmd`..."
eval $cmd
end