more fish config, less alias more abbr

This commit is contained in:
twoneis 2024-06-16 00:20:47 +02:00
parent e3e6fdc334
commit 63820f0cee

View file

@ -88,7 +88,19 @@
}; };
}; };
home.shellAliases = { programs.fish = {
enable = true;
plugins = with pkgs.fishPlugins; [
{ name = "tide"; src = pure.src; }
{ name = "bass"; src = bass.src; }
{ name = "sponge"; src = sponge.src; }
];
functions = {
start = "
niri-session
";
};
shellAbbrs = {
ga = "git add"; ga = "git add";
gc = "git commit"; gc = "git commit";
gp = "git push"; gp = "git push";
@ -98,24 +110,8 @@
repl = "nix repl --expr 'import <nixpkgs>{}'"; repl = "nix repl --expr 'import <nixpkgs>{}'";
nrb = "sudo nixos-rebuild switch --flake . --cores 0"; nrb = "sudo nixos-rebuild switch --cores 0 --flake .";
nd = "nix develop"; nd = "nix develop";
neofetch = "hyfetch";
};
# For direnv and shell aliases the shell needs to be managed by hm
programs.bash.enable = true;
programs.fish = {
enable = true;
plugins = with pkgs.fishPlugins; [
{ name = "tide"; src = pure.src; }
];
functions = {
start = "
niri-session
";
}; };
}; };
} }