Added: Fish config

This commit is contained in:
DerGrumpf 2025-03-25 01:26:22 +01:00
parent 0ab662f9f9
commit deb0815621
3 changed files with 33 additions and 24 deletions

View File

@ -0,0 +1,31 @@
{ pkgs, ...}:
{
# Fix underlying System POSIX bugs
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;
shellAbbrs = {
ls = "eza";
la = "eza -la";
};
interactiveShellInit = ''
fish_config prompt choose disco
function fish_greeting
fastfetch
echo (set_color yellow)(date +%T)(set_color normal) on $hostname
end
'';
};
}

View File

@ -7,7 +7,8 @@
imports = [
../../home/core.nix
../../home/shell/fish
../../home/hyprland
../../home/programs
../../home/rofi

View File

@ -16,27 +16,4 @@
shell = pkgs.fish;
};
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;
shellAbbrs = {
ls = "eza";
la = "eza -la";
};
interactiveShellInit = ''
fish_config prompt choose disco
function fish_greeting
echo (set_color yellow)(date +%T)(set_color normal) on $hostname
end
'';
};
}