summaryrefslogtreecommitdiff
path: root/users/seth/shell/zsh.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-01 01:37:05 -0400
committerseth <[email protected]>2023-05-01 01:37:05 -0400
commitdb2a176495a8d212cacde6cb38162ea1cd30ee1c (patch)
tree62744d6f62abde17724974357b484b491ac7cd1d /users/seth/shell/zsh.nix
parent96ba85bd431b96c71357afdb265c93c806d063da (diff)
update shell configs
Diffstat (limited to 'users/seth/shell/zsh.nix')
-rw-r--r--users/seth/shell/zsh.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/users/seth/shell/zsh.nix b/users/seth/shell/zsh.nix
index 75e67b3..b697d02 100644
--- a/users/seth/shell/zsh.nix
+++ b/users/seth/shell/zsh.nix
@@ -8,6 +8,7 @@
programs.zsh = {
enable = true;
enableAutosuggestions = true;
+
completionInit = ''
autoload -Uz bashcompinit compinit
local zdump="${config.xdg.cacheHome}/zsh/zdump"
@@ -19,8 +20,10 @@
fi
unset zdump
'';
+
defaultKeymap = "emacs";
dotDir = ".config/zsh";
+
initExtra = ''
if [[ -r "$XDG_CACHE_HOME/p10k-instant-prompt-*.zsh" ]]; then
source "$XDG_CACHE_HOME/p10k-instant-prompt-*.zsh"
@@ -62,12 +65,14 @@
[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh
'';
+
history = {
expireDuplicatesFirst = true;
path = "${config.xdg.stateHome}/zsh/zsh_history";
save = 1000;
size = 100;
};
+
plugins = [
{
name = "cattppuccin-zsh-syntax-highlighting";
@@ -100,17 +105,12 @@
}
{
- name = "zsh-fzf-tab";
- src = pkgs.zsh-fzf-tab;
- file = "share/fzf-tab/fzf-tab.plugin.zsh";
- }
-
- {
name = "zsh-completions";
src = pkgs.zsh-completions;
file = "share/zsh-completions/zsh-completions.plugin.zsh";
}
];
+
enableSyntaxHighlighting = true;
};
}