From c1a8e98d61be110e67c83970de5ef7cfc35c80da Mon Sep 17 00:00:00 2001 From: Thomas Preisner Date: Mon, 9 Oct 2017 22:59:54 +0200 Subject: [PATCH] zsh: prompt: only set LS_COLORS if not using darwin nor bsd --- zsh/prompt.zsh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/zsh/prompt.zsh b/zsh/prompt.zsh index 3cad3ac..8f4d0c2 100644 --- a/zsh/prompt.zsh +++ b/zsh/prompt.zsh @@ -1,11 +1,15 @@ # ===== use colorized output autoload -Uz colors; colors -if [[ $IS_MAC -eq 1 ]]; then - export CLICOLOR=1 - export LSCOLORS=gxfxcxdxbxegedabagacad -fi -export LS_COLORS=di='36;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:' +case "$OSTYPE" in + darwin*|bsd*) + export CLICOLOR=1 + export LSCOLORS=gxfxcxdxbxegedabagacad + ;; + *) + export LS_COLORS=di='36;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:' + ;; +esac # ===== setopts and misc # only show RPROMPT on the current prompt