finish current refactor

This commit is contained in:
Sean Kovacs 2025-11-13 14:50:12 -05:00
commit ec7197316a
Signed by: sckova
GPG key ID: 00F325187C68651A
11 changed files with 572 additions and 560 deletions

20
system/shell/fish.nix Normal file
View file

@ -0,0 +1,20 @@
{ 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.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting # Disable greeting
'';
};
}