Files
nixos/system/term.nix
T
biscuit 453bc1f249 upd
2025-05-20 06:31:39 -05:00

15 lines
406 B
Nix

{pkgs, ...}: {
programs.bash = {
interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
programs.zsh.enable = true;
programs.fish.enable = true;
}