nix-config/users/tacocat/shell/zsh.nix

52 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2023-10-21 00:49:53 +00:00
{
config,
pkgs,
...
}: {
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
enableVteIntegration = true;
2023-10-21 00:49:53 +00:00
syntaxHighlighting.enable = true;
autocd = true;
defaultKeymap = null;
dotDir = "~/.config/zsh";
history = {
ignoreSpace = true;
path = "${config.xdg.dataHome}/zsh/zsh_history";
save = 10000;
};
historySubstringSearch.enable = true;
plugins = [
{
name = "z.lua";
src = pkgs.fetchFromGitHub {
owner = "skywind3000";
repo = "z.lua";
rev = "1.8.16";
sha256 = "VVJXBVENXlJXVj831Hx4sa7AzGHXpsui6tga9uA6ZnE=";
};
}
2023-11-07 02:43:16 +00:00
# TODO change vi-mode cursor
2023-10-21 00:49:53 +00:00
{
name = "zsh-vi-mode";
src = pkgs.fetchFromGitHub {
owner = "jeffreytse";
repo = "zsh-vi-mode";
rev = "v0.10.0";
sha256 = "QE6ZwwM2X0aPqNnbVrj0y7w9hmuRf0H1j8nXYwyoLo4=";
};
}
];
2023-11-01 04:06:04 +00:00
# initExtra = ''
# source $HOME/.config/zsh/.p10k.zsh
# '';
2023-11-01 14:21:19 +00:00
localVariables = {
ZVM_TERM = "xterm-256color";
};
2023-10-21 00:49:53 +00:00
};
2023-11-01 04:06:04 +00:00
# home.file.".config/zsh/.p10k.zsh".source = ./.p10k.zsh;
2023-10-21 00:49:53 +00:00
}