nixos/fish: remove promptInit in favor of interactiveShellInit#133161
nixos/fish: remove promptInit in favor of interactiveShellInit#133161kidonng wants to merge 1 commit intoNixOS:masterfrom
promptInit in favor of interactiveShellInit#133161Conversation
promptInit in favor of interactiveShellInitpromptInit in favor of interactiveShellInit
Flakebi
left a comment
There was a problem hiding this comment.
Looks good to me. It doesn’t make sense to have two options that do exactly the same.
|
I checked NixOS options: As you can see I think that the options should be consistent to not make shell tranzitioning a pain-in-the-ass |
This is already noted in the PR description. If we want to keep them consistent we probably want to make a custom prompt in fish's
fish is not POSIX so the transition won't be trivial however. You can't expect to rename config key from bash/zsh to fish and everything just works. |
|
Could you please give a refresh this PR so we can move forward? Thanks! |
|
will be nice to have this in the near future. please update the PR |
Motivation for this change
Derived from nix-community/home-manager#2231
promptInitdoes nothing special and can already be implemented viainteractiveShellInit, so I suggest just keep the latter.Things are slightly different in NixOS than Home Manager that both
bashandzshhave a meaningfulpromptInit, so it may also be kept for consistency.Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)