dots/users/price/conf/zsh/default.nix

23 lines
488 B
Nix
Raw Permalink Normal View History

{ config, ... }:
{
programs = {
z-lua = {
enable = true;
options = [
"enhanced"
"once"
];
};
zsh = {
enable = true;
enableCompletion = true;
initExtra = builtins.readFile ./init-extra.zsh;
completionInit =
let
zsh-cache-dir = "${config.xdg.cacheHome}/zsh";
in
"mkdir -p ${zsh-cache-dir} && autoload -U compinit && compinit -d ${zsh-cache-dir}/zcompdump-$ZSH_VERSION";
};
};
}