home/zsh: refactor

This commit is contained in:
Guanran Wang 2024-03-20 22:44:47 +08:00
parent 81b0ee0ded
commit 1e82abceef
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

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