From ea65fdc7b49d11a18f62d9aec2116934852a1513 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 2 Jul 2012 09:48:39 +0200 Subject: [PATCH] zshrc: Enable CLICOLOR on FreeBSD Thanks: Christian Hofstaedtler --- etc/zsh/zshrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 1019445..3b65a09 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -179,6 +179,11 @@ isdarwin(){ return 1 } +isfreebsd(){ + [[ $OSTYPE == freebsd* ]] && return 0 + return 1 +} + #f1# are we running within an utf environment? isutfenv() { case "$LANG $CHARSET $LANGUAGE" in @@ -533,8 +538,9 @@ export SHELL='/bin/zsh' # color setup for ls: check_com -c dircolors && eval $(dircolors -b) -# color setup for ls on OS X: +# color setup for ls on OS X / FreeBSD: isdarwin && export CLICOLOR=1 +isfreebsd && export CLICOLOR=1 # do MacPorts setup on darwin if isdarwin && [[ -d /opt/local ]]; then -- 2.1.4