nix/home/zsh/default.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2024-06-05 20:52:52 +02:00
{ config, pkgs, ...} :
{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
ls = "ls -a";
sp = "sudo nixos-rebuild switch --flake ~/nix/#pc";
sl = "sudo nixos-rebuild switch --flake ~/nix/#laptop";
sc = "sudo nixos-rebuild switch --flake ~/nix/#craptop";
up = "sudo nix flake update ~/nix";
fr = "sudo systemctl reboot --firmware";
hy = "vim ~/nix/home/hyprland/default.nix";
eh = "vim ~/nix/home/default.nix";
gtk = "vim ~/nix/home/gtk/default.nix";
v = "vim";
ser = "ssh root@joygnu.org";
zs = "vim ~/nix/home/zsh/default.nix";
ep = "vim ~/nix/modules/packages/default.nix";
del = "sudo nix-collect-garbage -d";
push = "git push origin main && git push berg main";
ec = "vim ~/nix/hosts/pc/default.nix";
2024-06-13 20:34:51 +02:00
el = "vim ~/nix/hosts/laptop/default.nix";
2024-06-05 20:52:52 +02:00
ef = "vim ~/nix/flake.nix";
epc = "vim ~/nix/hosts/pc/default.nix";
em = "vim ~/nix/modules/misc/default.nix";
es = "vim ~/nix/modules/stylix/default.nix";
};
history.size = 10000;
history.path = "${config.xdg.dataHome}/zsh/history";
oh-my-zsh = {
enable = true;
plugins = [ "history-substring-search" ];
theme = "simple";
};
};
}