1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

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