summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/zsh.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index 4ae24110..22899397 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -209,10 +209,13 @@ in
     '';
 
     initExtraFirst = ''
-      if [[ -r "${config.xdg.cacheHome}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
-        source "${config.xdg.cacheHome}/p10k-instant-prompt-''${(%):-%n}.zsh"
+      if [[ $TERM != "dumb" ]]
+      then
+        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
       fi
-      typeset -g POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
     '';
     initExtra =
       ''