From 85a71a3923cdf1b482c8a1d5b617e017dbefc974 Mon Sep 17 00:00:00 2001 From: Nikita Uvarov Date: Wed, 23 Aug 2017 12:53:41 +0200 Subject: [PATCH] oh-my-zsh: set `ZSH_CACHE_DIR` --- modules/programs/oh-my-zsh.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/programs/oh-my-zsh.nix b/modules/programs/oh-my-zsh.nix index 654c68e1..fc2692a3 100644 --- a/modules/programs/oh-my-zsh.nix +++ b/modules/programs/oh-my-zsh.nix @@ -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})" }