2024-06-05 20:52:52 +02:00
|
|
|
{ config, pkgs, ...} :
|
|
|
|
|
|
|
|
{
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
autosuggestion.enable = true;
|
|
|
|
syntaxHighlighting.enable = true;
|
|
|
|
|
|
|
|
shellAliases = {
|
2024-06-25 16:59:38 +02:00
|
|
|
v = "nvim";
|
2024-07-02 18:00:01 +02:00
|
|
|
pu = "git push -u berg main && git push -u hub main";
|
2024-06-05 20:52:52 +02:00
|
|
|
fr = "sudo systemctl reboot --firmware";
|
|
|
|
ser = "ssh root@joygnu.org";
|
2024-07-01 08:10:28 +02:00
|
|
|
sp = "sudo nixos-rebuild switch --flake ~/nix/#pc";
|
|
|
|
sl = "sudo nixos-rebuild switch --flake ~/nix/#laptop";
|
2024-06-25 16:59:38 +02:00
|
|
|
up = "sudo nix flake update ~/nix";
|
2024-06-05 20:52:52 +02:00
|
|
|
del = "sudo nix-collect-garbage -d";
|
2024-06-25 16:59:38 +02:00
|
|
|
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";
|
2024-07-01 09:18:05 +02:00
|
|
|
eb = "nvim ~/nix/modules/packages/default.nix";
|
2024-06-05 20:52:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
history.size = 10000;
|
|
|
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
|
|
|
|
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [ "history-substring-search" ];
|
|
|
|
theme = "simple";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|