2024-08-21 09:02:49 +02:00
|
|
|
{pkgs, ...}: {
|
2024-06-05 20:52:52 +02:00
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
2024-08-08 15:26:04 +02:00
|
|
|
syntaxHighlighting.enable = true;
|
2024-06-05 20:52:52 +02:00
|
|
|
enableCompletion = true;
|
|
|
|
autosuggestion.enable = true;
|
2024-07-15 23:46:53 +02:00
|
|
|
historySubstringSearch.enable = true;
|
2024-08-29 15:40:20 +02:00
|
|
|
dotDir = ".config/zsh";
|
2024-07-15 23:46:53 +02:00
|
|
|
initExtra = "PROMPT='%F{green}%~%f '";
|
2024-08-21 09:02:49 +02:00
|
|
|
|
2024-06-05 20:52:52 +02:00
|
|
|
shellAliases = {
|
2024-07-23 19:40:00 +02:00
|
|
|
v = "hx";
|
2024-07-16 12:00:22 +02:00
|
|
|
cat = "bat";
|
2024-07-16 10:38:14 +02:00
|
|
|
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
|
2024-08-05 21:03:25 +02:00
|
|
|
pu = "sh ~/nix/home/zsh/push.sh";
|
2024-08-18 14:15:16 +02:00
|
|
|
ip = "sh ~/nix/home/zsh/ip.sh";
|
2024-06-05 20:52:52 +02:00
|
|
|
fr = "sudo systemctl reboot --firmware";
|
|
|
|
ser = "ssh root@joygnu.org";
|
2024-08-10 22:09:09 +02:00
|
|
|
rb = "sh ~/nix/home/zsh/rebuild.sh";
|
2024-06-25 16:59:38 +02:00
|
|
|
up = "sudo nix flake update ~/nix";
|
2024-06-05 20:52:52 +02:00
|
|
|
del = "sudo nix-collect-garbage -d";
|
|
|
|
};
|
|
|
|
|
2024-07-16 10:58:42 +02:00
|
|
|
history.size = 1000000;
|
2024-08-29 15:40:20 +02:00
|
|
|
history.path = ".config/zsh/history";
|
2024-06-05 20:52:52 +02:00
|
|
|
};
|
|
|
|
}
|