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