nix/modules/apps/cli/zsh/default.nix

33 lines
999 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";
2024-09-15 10:25:38 +02:00
pu = "sh ~/nix/modules/apps/cli/zsh/scripts/push.sh";
ip = "sh ~/nix/modules/apps/cli/zsh/scripts/ip.sh";
2024-08-31 16:04:57 +02:00
fr = "sudo systemctl reboot --firmware";
ser = "ssh root@joygnu.org";
2024-09-15 10:25:38 +02:00
rb = "sh ~/nix/modules/apps/cli/zsh/scripts/rebuild.sh";
2024-08-31 16:04:57 +02:00
up = "sudo nix flake update ~/nix";
del = "sudo nix-collect-garbage -d";
2024-09-19 10:10:40 +02:00
dn = "dotnet new console";
2024-09-18 11:15:01 +02:00
dr = "dotnet run";
2024-08-31 16:04:57 +02:00
};
history.size = 1000000;
history.path = ".config/zsh/history";
};
2024-08-31 17:37:21 +02:00
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
2024-08-31 16:04:57 +02:00
}