nix/modules/programs/zsh/default.nix
2024-11-08 18:23:40 +01:00

41 lines
1 KiB
Nix

{
pkgs,
domain,
username,
...
}: {
programs.zsh = {
enable = true;
syntaxHighlighting.enable = true;
enableCompletion = true;
autosuggestion.enable = true;
dotDir = ".config/zsh";
history.size = 1000000;
history.path = ".config/zsh/history";
shellAliases = {
cn = "cd ~/nix";
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
v = "hx";
cat = "bat";
lg = "${pkgs.lazygit}/bin/lazygit";
rs = "z ~ && ssh root@45.145.42.193";
hs = "z ~ && ssh ${username}@${domain}";
su = "z ~ && su";
ip = "sh ~/nix/modules/programs/zsh/scripts/ip.sh";
rb = "sh ~/nix/modules/programs/zsh/scripts/rebuild.sh";
fr = "doas systemctl reboot --firmware";
up = "nix flake update --flake ~/nix/";
del = "doas nix-collect-garbage -d";
dn = "dotnet new console";
dr = "dotnet run";
};
oh-my-zsh = {
enable = true;
plugins = ["git" "history-substring-search"];
theme = "simple";
};
};
}