This commit is contained in:
2023-01-07 16:27:26 +00:00
parent 3469473669
commit 1d0f43a118
5 changed files with 158 additions and 104 deletions

View File

@ -14,6 +14,8 @@ in {
programs.zsh = {
enable = true;
enableCompletion = true;
enableGlobalCompInit = false;
promptInit = "";
};
user.packages = with pkgs; [
@ -24,19 +26,25 @@ in {
nnn
ripgrep
zsh
zsh-autosuggestions
zsh-fast-syntax-highlighting
zsh-history-substring-search
];
env = {
ZDOTDIR = "$XDG_CONFIG_HOME/zsh";
ZSH_CACHE = "$XDG_CACHE_HOME/zsh";
ZGEN_DIR = "$XDG_DATA_HOME/zgenom";
};
home.configFile = {
"zsh/.zshrc" = { source = ./.zshrc; };
"zsh/aliases.zsh" = { source = ./aliases.zsh; };
"zsh/.zshrc".source = ./.zshrc;
"zsh/aliases.zsh".source = ./aliases.zsh;
"zsh/completion.zsh".source = ./completion.zsh;
"zsh/config.zsh".source = ./config.zsh;
"zsh/keybinds.zsh".source = ./keybinds.zsh;
};
system.userActivationScripts.cleanupZgen = ''
rm -rf $ZSH_CACHE
rm -fv $ZGEN_DIR/init.zsh{,.zwc}
'';
};
}