oh-my-zsh: set dir cache to "${XDG_CACHE_HOME:-$HOME/.cache}/oh-my-zsh"

This commit is contained in:
Nikita Uvarov 2017-08-23 12:53:41 +02:00
parent 1678548353
commit a380d610a0
No known key found for this signature in database
GPG key ID: F7A5FB3A7C10EF96

View file

@ -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})"
}