2024-07-16 10:58:42 +02:00
|
|
|
{ pkgs, ... } :
|
2024-06-05 20:52:52 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
autosuggestion.enable = true;
|
|
|
|
syntaxHighlighting.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-07-04 00:19:14 +02:00
|
|
|
pu = "bash ~/nix/home/zsh/push.sh";
|
2024-06-05 20:52:52 +02:00
|
|
|
fr = "sudo systemctl reboot --firmware";
|
|
|
|
ser = "ssh root@joygnu.org";
|
2024-07-04 12:57:40 +02:00
|
|
|
rb = "bash ~/nix/home/zsh/desktop-laptop.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
|
|
|
|
2024-07-16 10:38:14 +02:00
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [
|
|
|
|
"history-substring-search"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-06-05 20:52:52 +02:00
|
|
|
};
|
|
|
|
}
|