flake/home/applications/zsh/default.nix

32 lines
615 B
Nix
Raw Normal View History

2023-11-05 09:21:37 +00:00
{
config,
pkgs,
...
}: {
programs.zsh = {
enable = true;
dotDir = ".config/zsh";
2024-03-20 14:44:47 +00:00
initExtra = "zstyle ':fzf-tab:*' fzf-command sk";
2023-11-05 09:21:37 +00:00
enableAutosuggestions = true;
2024-03-20 14:44:47 +00:00
historySubstringSearch.enable = true;
syntaxHighlighting.enable = true;
2023-11-05 09:21:37 +00:00
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
}
];
2024-03-20 14:44:47 +00:00
2023-11-05 09:21:37 +00:00
history = {
2024-03-20 14:44:47 +00:00
path = "${config.xdg.dataHome}/zsh/zsh_history";
2023-11-05 09:21:37 +00:00
save = 1000000;
size = 1000000;
};
};
}