nix/home/zsh/default.nix
2024-08-29 15:40:20 +02:00

28 lines
768 B
Nix

{pkgs, ...}: {
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";
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
pu = "sh ~/nix/home/zsh/push.sh";
ip = "sh ~/nix/home/zsh/ip.sh";
fr = "sudo systemctl reboot --firmware";
ser = "ssh root@joygnu.org";
rb = "sh ~/nix/home/zsh/rebuild.sh";
up = "sudo nix flake update ~/nix";
del = "sudo nix-collect-garbage -d";
};
history.size = 1000000;
history.path = ".config/zsh/history";
};
}