2023-11-25 14:54:17 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
programs.fish.enable = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [nix-your-shell];
|
|
|
|
|
|
|
|
hm.programs.fish = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
interactiveShellInit = with pkgs; ''
|
2024-08-28 19:01:58 +02:00
|
|
|
set -gx SSH_AUTH_SOCK /run/user/1000/ssh-agent
|
|
|
|
|
2024-07-29 10:32:15 +02:00
|
|
|
if test -f ~/.ssh/id_ed25519
|
|
|
|
ssh-add -l | grep -q (ssh-keygen -lf ~/.ssh/id_ed25519) || ssh-add ~/.ssh/id_ed25519
|
|
|
|
end
|
2024-07-26 12:58:05 +02:00
|
|
|
|
2023-11-25 14:54:17 +01:00
|
|
|
${lib.getExe starship} init fish | source
|
|
|
|
${lib.getExe nix-your-shell} fish | source
|
|
|
|
'';
|
|
|
|
|
2024-01-10 18:23:27 +01:00
|
|
|
functions.fish_greeting = "";
|
2023-11-25 14:54:17 +01:00
|
|
|
};
|
|
|
|
}
|