oh-my-zsh: set ZSH_CACHE_DIR

This commit is contained in:
Nikita Uvarov 2017-08-23 12:53:41 +02:00 committed by Robert Helgesson
parent a30751464a
commit 85a71a3923
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -45,9 +45,12 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = [ pkgs.oh-my-zsh ]; home.packages = [ pkgs.oh-my-zsh ];
programs.zsh.initExtra = with pkgs; '' programs.zsh.initExtra = with pkgs; ''
# oh-my-zsh configuration generated by NixOS # oh-my-zsh configuration generated by NixOS
export ZSH=${oh-my-zsh}/share/oh-my-zsh export ZSH=${oh-my-zsh}/share/oh-my-zsh
export ZSH_CACHE_DIR=''${XDG_CACHE_HOME:-$HOME/.cache}/oh-my-zsh
${optionalString (cfg.plugins != []) ${optionalString (cfg.plugins != [])
"plugins=(${concatStringsSep " " cfg.plugins})" "plugins=(${concatStringsSep " " cfg.plugins})"
} }