Files
nix/home-manager/common/programs/zsh.nix
T
Miguel Palhas 27afe4e121 code review
2024-09-29 19:38:26 +01:00

48 lines
884 B
Nix

{ inputs, config, ... }: {
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
c = "cargo";
d = "docker";
dc = "docker compose";
g = "git";
n = "nvim";
vim = "nvim";
mm = "mise";
mr = "mise run";
ls = "eza";
cat = "bat";
ps = "procs";
};
history = {
size = 10000;
path = "${config.xdg.dataHome}/zsh/history";
};
zplug = {
enable = true;
plugins =
[ { name = "hlissner/zsh-autopair"; } { name = "Aloxaf/fzf-tab"; } ];
};
initExtra = ''
eval "$(mise activate zsh)"
'';
};
programs.fzf = {
enable = true;
enableZshIntegration = true;
};
programs.starship = {
enable = true;
settings = { add_newline = true; };
};
}