nix/modules/apps/zsh/default.nix

29 lines
847 B
Nix
Raw Normal View History

2024-08-31 16:04:57 +02:00
{pkgs, ...}: {
home-manager.users.joy.programs.zsh = {
enable = true;
syntaxHighlighting.enable = true;
enableCompletion = true;
autosuggestion.enable = true;
historySubstringSearch.enable = true;
dotDir = ".config/zsh";
initExtra = "PROMPT='%F{green}%~%f '";
shellAliases = {
v = "hx";
cat = "bat";
cn = "cd ~/nix";
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
pu = "sh ~/nix/modules/zsh/scripts/push.sh";
ip = "sh ~/nix/modules/zsh/scripts/ip.sh";
fr = "sudo systemctl reboot --firmware";
ser = "ssh root@joygnu.org";
rb = "sh ~/nix/modules/zsh/scripts/rebuild.sh";
up = "sudo nix flake update ~/nix";
del = "sudo nix-collect-garbage -d";
};
history.size = 1000000;
history.path = ".config/zsh/history";
};
}