nix-darwin/home/zsh.nix

44 lines
890 B
Nix
Executable file

{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
defaultKeymap = "viins";
history = {
size = 10000;
save = 10000;
share = true;
ignoreAllDups = true;
ignoreDups = true;
ignoreSpace = true;
};
shellAliases = {
poby = "echo my name is poby";
drs = "sudo darwin-rebuild switch --flake ~/nix-darwin#$(hostname)"; # TODO change to just script
drt = "sudo darwin-rebuild test --flake ~/nix-darwin#$(hostname)"; # TODO change to just script
};
sessionVariables = {
EDITOR = "nvim";
};
oh-my-zsh = {
enable = true;
theme = "robbyrussell";
plugins = [
"git"
"gitignore"
"history"
"sudo"
"vi-mode"
"zoxide"
"eza"
];
};
};
}