🚚 [shared] Added shared config that shared desktop config inherits from
This commit is contained in:
55
shared/desktop/home-manager/shell/fish.nix
Normal file
55
shared/desktop/home-manager/shell/fish.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ pkgs, theme, ... }:
|
||||
|
||||
{
|
||||
catppuccin = {
|
||||
fish = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
};
|
||||
starship = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
fish = {
|
||||
enable = true;
|
||||
# Start starship when creating a new shell
|
||||
interactiveShellInit = ''
|
||||
starship init fish | source
|
||||
${pkgs.fortune}/bin/fortune | ${pkgs.cowsay}/bin/cowsay -f tux
|
||||
'';
|
||||
plugins = [
|
||||
{
|
||||
# !! to get the previous command
|
||||
# https://github.com/BrewingWeasel/fishbang
|
||||
name = "fishbang";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "BrewingWeasel";
|
||||
repo = "fishbang";
|
||||
rev = "50389667eb9ac79edcff9b987c83e1de8ac93921";
|
||||
hash = "sha256-IneNWyfo29C7FDA5b6pTZRX3HpP6y/dRM6GXuLq2+zc=";
|
||||
};
|
||||
}
|
||||
];
|
||||
shellAliases = {
|
||||
nix-shell = "nix-shell --run fish"; # Start nix-shells using fish
|
||||
};
|
||||
};
|
||||
|
||||
starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
directory.substitutions = {
|
||||
"Documents" = " ";
|
||||
"Downloads" = " ";
|
||||
"Music" = " ";
|
||||
"Pictures" = " ";
|
||||
"Git" = " ";
|
||||
"nextcloud" = " ";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user