From ce033d689f25fb82772c6cc33b3e9112e5c26289 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Wed, 26 Feb 2020 12:38:52 +0100 Subject: [PATCH] updated stuff --- zsh/.p10k.zsh | 2 ++ zsh/exports.zsh | 1 + 2 files changed, 3 insertions(+) diff --git a/zsh/.p10k.zsh b/zsh/.p10k.zsh index 4078084..2fabb84 100644 --- a/zsh/.p10k.zsh +++ b/zsh/.p10k.zsh @@ -916,6 +916,8 @@ # can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you # really need it. typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true + + [[ "$wsl" == "Microsoft" ]] && typeset -g POWERLEVEL9K_DISABLE_GITSTATUS=true } (( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]} diff --git a/zsh/exports.zsh b/zsh/exports.zsh index 7614fb0..2e5c7e4 100644 --- a/zsh/exports.zsh +++ b/zsh/exports.zsh @@ -15,3 +15,4 @@ export path=($path $GEM_HOME/bin) #stuff export os=$(grep -E "^ID=" /etc/*release | cut -d= -f2) +export wsl=$(uname -r | cut -d'-' -f3)