mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 15:14:26 +00:00
oh-my-zsh: set ZSH_CACHE_DIR
This commit is contained in:
parent
a30751464a
commit
85a71a3923
1 changed files with 3 additions and 0 deletions
|
@ -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