nix-shell: Support Alternative Shells #538

Closed
opened 2024-10-01 14:56:27 +00:00 by rawkode · 1 comment

When using nix-shell, it disregards your $SHELL and forces bash.

This appears to be the case due to some gnarly logic, [here]

auto rcfile = (Path) tmpDir + "/rc";

():

It would be awesome if this could respect the users $SHELL of choice.

Describe the solution you'd like

Use $SHELL, or allow setting a specific shell for the nix-shell environment.

Describe alternatives you've considered

There is no alternative 😰

Additional context

Add any other context or screenshots about the feature request here.

## Is your feature request related to a problem? Please describe. When using `nix-shell`, it disregards your `$SHELL` and forces `bash`. This appears to be the case due to some gnarly logic, [here]https://git.lix.systems/lix-project/lix/src/commit/775292766025380d04004e42fefbdb8ca40b3fa3/src/nix-build/nix-build.cc#L490(): It would be awesome if this could respect the users `$SHELL` of choice. ## Describe the solution you'd like Use `$SHELL`, or allow setting a specific shell for the `nix-shell` environment. ## Describe alternatives you've considered There is no alternative 😰 ## Additional context Add any other context or screenshots about the feature request here.
Author

Oops.

Duplicate of #464

Oops. Duplicate of #464
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#538
No description provided.