zshrc.d/20-prompt.zrc
changeset 44 157f894ef9f7
parent 40 6eeab84c3f15
child 49 06af8cc97cc1
--- a/zshrc.d/20-prompt.zrc	Wed May 08 15:18:39 2019 +0200
+++ b/zshrc.d/20-prompt.zrc	Mon Mar 02 13:16:10 2020 +0100
@@ -73,7 +73,7 @@
   r=$(__git_ps1)
   # If GIT_PS1_SHOWUNTRACKEDFILES is used, we need to escape the %
   r=${r//\%/%%}
-  if [ ! -z $r ]; then echo -e "\n%Bgit%b$r"; fi
+  if [[ ! -z $r ]]; then echo -e "\n%Bgit%b$r"; fi
 }
 
 function __prompt_set_dev {
@@ -182,7 +182,7 @@
 [%B%n%b:%l] %{$fg[red]%}%m%{$reset_color%}%# "
     export PS1
 
-    export _PROMPT_DEFINED="blackwhite"
+    export _PROMPT_DEFINED="color"
 }
 
 function prompt_set_dev {