This commit is contained in:
biscuit
2025-05-20 06:31:39 -05:00
parent 7fc61d7d27
commit 453bc1f249
4 changed files with 38 additions and 3 deletions
+12 -1
View File
@@ -1,3 +1,14 @@
{...}: {
{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;
}