From: Michael Prokop Date: Mon, 2 Jul 2012 07:48:39 +0000 (+0200) Subject: zshrc: Enable CLICOLOR on FreeBSD X-Git-Tag: v0.7.0~16 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=ea65fdc7b49d11a18f62d9aec2116934852a1513 zshrc: Enable CLICOLOR on FreeBSD Thanks: Christian Hofstaedtler --- 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