nix/home/zsh/default.nix
2024-07-03 20:53:41 +02:00

42 lines
1.2 KiB
Nix

{ config, pkgs, ...} :
{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
v = "nvim";
pu = "git push origin main && git push -u berg main && git push -u hub main";
fr = "sudo systemctl reboot --firmware";
ser = "ssh root@joygnu.org";
rb = "bash ~/nix/home/zsh/pc-laptop.sh";
up = "sudo nix flake update ~/nix";
del = "sudo nix-collect-garbage -d";
gtk = "nvim ~/nix/home/gtk/default.nix";
hy = "nvim ~/nix/home/hyprland/default.nix";
zs = "nvim ~/nix/home/zsh/default.nix";
ec = "nvim ~/nix/hosts/pc/default.nix";
el = "nvim ~/nix/hosts/laptop/default.nix";
ef = "nvim ~/nix/flake.nix";
ep = "nvim ~/nix/hosts/pc/default.nix";
eh = "nvim ~/nix/home/default.nix";
em = "nvim ~/nix/modules/misc/default.nix";
es = "nvim ~/nix/modules/stylix/default.nix";
eb = "nvim ~/nix/modules/packages/default.nix";
};
history.size = 10000;
history.path = "${config.xdg.dataHome}/zsh/history";
oh-my-zsh = {
enable = true;
plugins = [ "history-substring-search" ];
theme = "simple";
};
};
}