nix-config/modules/shell/fish.nix

23 lines
440 B
Nix
Raw Normal View History

2023-10-14 18:53:32 +02:00
{
config,
lib,
pkgs,
vars,
...
}: {
home-manager.users.${vars.user} = {
programs.fish = {
enable = true;
interactiveShellInit = ''
nix-your-shell fish | source
set fish_greeting
'';
shellAliases = {
lzg = "lazygit";
lzd = "lazydocker";
2023-11-05 19:43:51 +01:00
batt = ''upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -e "percentage" -e "state"'';
2023-10-14 18:53:32 +02:00
};
};
};
}