From 4a02a0308ca9b1d3a24afd8d9df828384eada77c Mon Sep 17 00:00:00 2001 From: janabhumi Date: Wed, 31 Aug 2022 18:26:01 +0300 Subject: [PATCH] home/zsh: fix omz theme condition --- home/shell/zsh.nix | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/home/shell/zsh.nix b/home/shell/zsh.nix index 90f23ac..cf043a7 100644 --- a/home/shell/zsh.nix +++ b/home/shell/zsh.nix @@ -15,7 +15,7 @@ in }; config = mkIf cfg.enable { - # fish and zsh support fo nix-shell + # fish and zsh support for nix-shell home.packages = with pkgs; [ any-nix-shell ]; programs.zsh = { @@ -36,23 +36,14 @@ in oh-my-zsh = { enable = true; - theme = mkIf config.shell.prompt.starship.enable "robbyrussell"; + theme = mkIf (!config.shell.prompt.starship.enable) "robbyrussell"; }; initExtraFirst = '' # nix - if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then - source $HOME/.nix-profile/etc/profile.d/nix.sh; - fi - source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh export NIX_PATH=$HOME/.nix-defexpr/channels''${NIX_PATH:+:$NIX_PATH} - - # ghcup - if [ -f "$HOME/.ghcup/env" ]; then - source "$HOME/.ghcup/env" - fi ''; initExtra = '' @@ -65,4 +56,3 @@ in }; }; } -