nix/modules/programs/zsh/default.nix

36 lines
1,005 B
Nix
Raw Normal View History

2024-10-05 00:31:24 +02:00
{pkgs, ...}: {
2024-10-04 22:32:42 +02:00
programs.zsh = {
2024-08-31 16:04:57 +02:00
enable = true;
syntaxHighlighting.enable = true;
enableCompletion = true;
2024-10-14 15:31:22 +02:00
autosuggestion.enable = true;
2024-08-31 16:04:57 +02:00
dotDir = ".config/zsh";
2024-10-18 18:09:30 +02:00
history.size = 1000000;
history.path = ".config/zsh/history";
2024-08-31 16:04:57 +02:00
shellAliases = {
cn = "cd ~/nix";
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
2024-10-05 00:27:30 +02:00
v = "hx";
cat = "bat";
2024-10-11 00:39:34 +02:00
lg = "${pkgs.lazygit}/bin/lazygit";
2024-11-05 22:59:59 +01:00
rs = "z ~ && ssh root@joygnu.org";
hs = "z ~ && ssh joy@yt.joygnu.org";
su = "z ~ && su";
2024-10-20 11:11:07 +02:00
ip = "sh ~/nix/modules/programs/zsh/scripts/ip.sh";
rb = "sh ~/nix/modules/programs/zsh/scripts/rebuild.sh";
2024-10-15 20:13:25 +02:00
fr = "doas systemctl reboot --firmware";
2024-10-18 18:09:30 +02:00
up = "nix flake update --flake ~/nix/";
2024-10-15 20:13:25 +02:00
del = "doas 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
};
2024-10-05 00:31:24 +02:00
oh-my-zsh = {
enable = true;
2024-10-14 15:31:22 +02:00
plugins = ["git" "history-substring-search"];
2024-10-05 00:31:24 +02:00
theme = "simple";
};
2024-08-31 16:04:57 +02:00
};
}