zsh: fix powerlevel10k init
Alan Pearce alan@alanpearce.eu
Wed, 07 Jun 2023 09:32:38 +0200
1 files changed, 6 insertions(+), 7 deletions(-)
jump to
M user/settings/zsh.nix → user/settings/zsh.nix
@@ -28,11 +28,6 @@ cp -a $PWD $out/ ''; }; }; - powerlevel = (mkZshPlugin { - name = "zsh-powerlevel10k"; - src = pkgs.zsh-powerlevel10k.src; - file = "powerlevel10k.zsh-theme"; - }).src; in { home.packages = with pkgs; [ @@ -92,6 +87,11 @@ rev = "598675303044df8e9d04722f3adff4f63a238922"; # date = 2017-07-19T21:59:49+09:00; sha256 = "08bjm1dd2mpv8rk8x6yvm6gj490rgimmiq7ln4jr5hik2k3mm82r"; }; + } + { + name = "zsh-powerlevel10k"; + src = pkgs.zsh-powerlevel10k.src; + file = "dummy"; } ]; @@ -215,8 +215,7 @@ if [[ -r "${config.xdg.cacheHome}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then source "${config.xdg.cacheHome}/p10k-instant-prompt-''${(%):-%n}.zsh" fi typeset -g POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true - fpath+=${powerlevel} - source ${powerlevel}/powerlevel10k.zsh-theme + source $ZDOTDIR/plugins/zsh-powerlevel10k/powerlevel10k.zsh-theme fi ''; initExtra =