nix/home/zsh/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

2024-07-16 10:58:42 +02:00
{ pkgs, ... } :
2024-06-05 20:52:52 +02:00
{
programs.zsh = {
enable = true;
2024-08-08 15:26:04 +02:00
syntaxHighlighting.enable = true;
2024-06-05 20:52:52 +02:00
enableCompletion = true;
autosuggestion.enable = true;
2024-07-15 23:46:53 +02:00
historySubstringSearch.enable = true;
2024-07-16 10:38:14 +02:00
dotDir = ".config/zsh";
2024-07-15 23:46:53 +02:00
initExtra = "PROMPT='%F{green}%~%f '";
2024-07-16 10:38:14 +02:00
2024-06-05 20:52:52 +02:00
shellAliases = {
2024-07-23 19:40:00 +02:00
v = "hx";
2024-07-16 12:00:22 +02:00
cat = "bat";
2024-07-16 10:38:14 +02:00
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
2024-08-05 21:03:25 +02:00
pu = "sh ~/nix/home/zsh/push.sh";
2024-08-18 14:15:16 +02:00
ip = "sh ~/nix/home/zsh/ip.sh";
2024-06-05 20:52:52 +02:00
fr = "sudo systemctl reboot --firmware";
ser = "ssh root@joygnu.org";
2024-08-10 22:09:09 +02:00
rb = "sh ~/nix/home/zsh/rebuild.sh";
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-07-16 21:02:38 +02:00
hy = "hx ~/nix/home/hyprland/default.nix";
zs = "hx ~/nix/home/zsh/default.nix";
el = "hx ~/nix/hosts/laptop/default.nix";
ef = "hx ~/nix/flake.nix";
ed = "hx ~/nix/hosts/desktop/default.nix";
eh = "hx ~/nix/home/default.nix";
em = "hx ~/nix/modules/misc/default.nix";
es = "hx ~/nix/modules/stylix/default.nix";
ep = "hx ~/nix/modules/packages/default.nix";
2024-07-18 01:16:50 +02:00
ex = "hx ~/nix/home/helix/default.nix";
2024-07-18 14:45:17 +02:00
efox = "hx ~/nix/home/firefox/default.nix";
2024-08-05 19:57:28 +02:00
ehx = "hx ~/nix/home/helix/default.nix";
2024-06-05 20:52:52 +02:00
};
2024-07-16 10:58:42 +02:00
history.size = 1000000;
2024-07-16 20:21:51 +02:00
history.path = ".config/zsh/history";
2024-06-05 20:52:52 +02:00
};
}