2025-01-12 17:38:51 +01:00
|
|
|
{ pkgs, ... }:
|
2025-01-08 19:47:02 +01:00
|
|
|
let
|
|
|
|
theme = import ../theme.nix;
|
|
|
|
in
|
2024-12-31 14:01:42 +01:00
|
|
|
{
|
2025-01-12 17:38:51 +01:00
|
|
|
catppuccin = {
|
|
|
|
fish = {
|
|
|
|
enable = true;
|
|
|
|
flavor = theme.flavor;
|
|
|
|
};
|
|
|
|
starship = {
|
|
|
|
enable = true;
|
|
|
|
flavor = theme.flavor;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-12-31 14:01:42 +01:00
|
|
|
programs = {
|
|
|
|
fish = {
|
|
|
|
enable = true;
|
2025-02-02 15:06:34 +01:00
|
|
|
# Start starship when creating a new shell
|
|
|
|
interactiveShellInit = ''
|
|
|
|
starship init fish | source
|
2025-02-15 12:02:23 +01:00
|
|
|
${pkgs.fortune}/bin/fortune | ${pkgs.cowsay}/bin/cowsay -f tux
|
2025-02-02 15:06:34 +01:00
|
|
|
'';
|
2024-12-31 14:01:42 +01:00
|
|
|
plugins = [
|
|
|
|
{
|
|
|
|
# !! to get the previous command
|
2025-02-02 13:16:51 +01:00
|
|
|
# https://github.com/BrewingWeasel/fishbang
|
2024-12-31 14:01:42 +01:00
|
|
|
name = "fishbang";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "BrewingWeasel";
|
|
|
|
repo = "fishbang";
|
|
|
|
rev = "50389667eb9ac79edcff9b987c83e1de8ac93921";
|
|
|
|
hash = "sha256-IneNWyfo29C7FDA5b6pTZRX3HpP6y/dRM6GXuLq2+zc=";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2025-02-02 15:06:34 +01:00
|
|
|
shellAliases = {
|
|
|
|
nix-shell = "nix-shell --run fish"; # Start nix-shells using fishcd
|
|
|
|
};
|
2024-12-31 14:01:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
starship = {
|
|
|
|
enable = true;
|
2025-01-08 19:47:02 +01:00
|
|
|
settings = {
|
|
|
|
directory.substitutions = {
|
|
|
|
"Documents" = " ";
|
|
|
|
"Downloads" = " ";
|
|
|
|
"Music" = " ";
|
|
|
|
"Pictures" = " ";
|
2025-01-12 17:38:51 +01:00
|
|
|
"Git" = " ";
|
|
|
|
"nextcloud" = " ";
|
2025-01-08 19:47:02 +01:00
|
|
|
};
|
|
|
|
};
|
2024-12-31 14:01:42 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|