2024-08-31 14:33:03 +02:00
|
|
|
{pkgs, ...}: {
|
2024-08-31 14:46:41 +02:00
|
|
|
home-manager.users.joy.programs.zsh = {
|
2024-08-31 14:33:03 +02:00
|
|
|
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";
|
2024-08-31 14:57:07 +02:00
|
|
|
pu = "sh ~/nix/modules/zsh/push.sh";
|
|
|
|
ip = "sh ~/nix/modules/zsh/ip.sh";
|
2024-08-31 14:33:03 +02:00
|
|
|
fr = "sudo systemctl reboot --firmware";
|
|
|
|
ser = "ssh root@joygnu.org";
|
2024-08-31 14:57:07 +02:00
|
|
|
rb = "sh ~/nix/home/modules/rebuild.sh";
|
2024-08-31 14:33:03 +02:00
|
|
|
up = "sudo nix flake update ~/nix";
|
|
|
|
del = "sudo nix-collect-garbage -d";
|
|
|
|
};
|
|
|
|
|
|
|
|
history.size = 1000000;
|
|
|
|
history.path = ".config/zsh/history";
|
|
|
|
};
|
|
|
|
}
|