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";
|
2023-11-20 12:21:55 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|