flake/users/guanranwang/home-manager/modules/shell/zsh.nix

33 lines
660 B
Nix
Raw Normal View History

2023-11-05 09:21:37 +00:00
{
config,
pkgs,
...
}: {
programs.zsh = {
enable = true;
### XDG
dotDir = ".config/zsh";
### Plugins
syntaxHighlighting.enable = true;
historySubstringSearch.enable = true;
enableAutosuggestions = true;
plugins = [
{
name = "fzf-tab";
src = "${pkgs.zsh-fzf-tab}/share/fzf-tab";
}
{
name = "sudo";
src = "${pkgs.oh-my-zsh}/share/oh-my-zsh/plugins/sudo";
2023-11-05 09:21:37 +00:00
}
];
initExtra = "zstyle ':fzf-tab:*' fzf-command sk";
### History
history = {
path = "${config.xdg.configHome}/zsh/.zsh_history";
save = 1000000;
size = 1000000;
};
};
}