oh-my-zsh: set ZSH_CACHE_DIR
This commit is contained in:
parent
a30751464a
commit
85a71a3923
|
@ -45,9 +45,12 @@ in
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [ pkgs.oh-my-zsh ];
|
||||
|
||||
programs.zsh.initExtra = with pkgs; ''
|
||||
# oh-my-zsh configuration generated by NixOS
|
||||
export ZSH=${oh-my-zsh}/share/oh-my-zsh
|
||||
export ZSH_CACHE_DIR=''${XDG_CACHE_HOME:-$HOME/.cache}/oh-my-zsh
|
||||
|
||||
${optionalString (cfg.plugins != [])
|
||||
"plugins=(${concatStringsSep " " cfg.plugins})"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue