fish plugins

This commit is contained in:
TheWanderingCrow 2024-11-04 11:21:32 -05:00
parent 930d54379f
commit 0f5b263422
2 changed files with 12 additions and 0 deletions

View file

@ -88,6 +88,17 @@
];
};
# REASONING: fish is not a POSIX compliant shell so if something happens we need to use bash as the login shell to prevent an irrecoverable shell
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.fish = {
enable = true;
};

View file

@ -139,6 +139,7 @@
# Fish shell stuff
[
fishPlugins.tide
procps
]
);
}