diff --git a/bin/any-nix-shell-wrapper b/bin/any-nix-shell-wrapper index 6944eb9..f98ad28 100755 --- a/bin/any-nix-shell-wrapper +++ b/bin/any-nix-shell-wrapper @@ -20,6 +20,7 @@ fns () { if [[ -n $name ]] && [[ $name != shell ]]; then pkgs+=" "$name fi - env ANY_NIX_SHELL_PKGS="$pkgs" nix-shell "$@" --command "$which_shell" + env ANY_NIX_SHELL_PKGS="$pkgs" nix-shell "$@" \ + --command "export SHELL=\"$(which $which_shell)\"; $which_shell" } fns "$@" \ No newline at end of file