From 2053967dfda60f28aac837d988bfdee35a8a429f Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 10 May 2015 12:32:50 +0300 Subject: [PATCH] .zshrc: Use gdircolors for dircolors on Mac OS X Then the dircoloring can be platform agnostic. Signed-off-by: Alan Orth --- .zshrc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.zshrc b/.zshrc index 3bfc1df..606b716 100644 --- a/.zshrc +++ b/.zshrc @@ -40,20 +40,18 @@ if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then alias ln='gln' alias find='gfind' alias sed='gsed' - - # solarized dircolors (needs coreutils from pkgsrc) - [[ -r ~/.dircolors.ansi-dark ]] && eval `gdircolors ~/.dircolors.ansi-dark` + alias dircolors='gdircolors' elif [[ "$OSTYPE" =~ ^linux*$ ]]; then # aliases alias ls='ls -F --color=auto' - - # solarized dircolors - [[ -r ~/.dircolors.ansi-dark ]] && eval `dircolors ~/.dircolors.ansi-dark` fi alias less='less -R' # preserves colors in GNU coreutils' `less` +# solarized dircolors +[[ -r ~/.dircolors.ansi-dark ]] && eval `dircolors ~/.dircolors.ansi-dark` + # Environment export PS1='[%n@%m: %~]$ ' export EDITOR=vim