nix/home/zsh/default.nix

48 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;
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-06-25 16:59:38 +02:00
v = "nvim";
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-06-25 16:59:38 +02:00
hy = "nvim ~/nix/home/hyprland/default.nix";
zs = "nvim ~/nix/home/zsh/default.nix";
el = "nvim ~/nix/hosts/laptop/default.nix";
ef = "nvim ~/nix/flake.nix";
2024-07-04 12:57:40 +02:00
ed = "nvim ~/nix/hosts/desktop/default.nix";
2024-06-25 16:59:38 +02:00
eh = "nvim ~/nix/home/default.nix";
em = "nvim ~/nix/modules/misc/default.nix";
es = "nvim ~/nix/modules/stylix/default.nix";
2024-07-04 15:22:30 +02:00
ep = "nvim ~/nix/modules/packages/default.nix";
2024-07-08 14:24:48 +02:00
ev = "nvim ~/nix/home/neovim/default.nix";
2024-06-05 20:52:52 +02:00
};
2024-07-16 10:58:42 +02:00
history.size = 1000000;
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"
"git"
];
};
2024-06-05 20:52:52 +02:00
};
}