marleyos/home/programs/fish.nix

66 lines
1 KiB
Nix
Raw Normal View History

{ pkgs, ... }:
{
2024-10-28 20:30:12 -07:00
home.packages = with pkgs; [
babelfish
];
programs.fish = {
enable = true;
2024-10-28 20:01:16 -07:00
2024-10-31 18:08:28 -07:00
rose-pine.enable = true;
2024-10-28 20:01:16 -07:00
preferAbbrs = true;
plugins = with pkgs.fishPlugins; [
{
name = "z";
src = z;
}
{
name = "Puffer Fish";
src = puffer;
}
{
name = "Sponge";
src = sponge;
}
{
name = "autopair.fish";
src = autopair;
}
];
2024-11-03 15:00:19 -08:00
shellInit = # fish
''
set -g fish_key_bindings fish_vi_key_bindings
'';
shellAbbrs = {
cp = {
position = "command";
expansion = "cp -iv";
};
mkdir = {
position = "command";
expansion = "mkdir -pv";
};
mv = {
position = "command";
expansion = "mv -iv";
};
rm = {
position = "command";
expansion = "rm -r";
};
grep = {
position = "command";
expansion = "grep --color=auto";
};
};
};
}