From 52d74216a748b32bb098f328a2476bc66a2e014f Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Wed, 24 Apr 2013 16:43:50 +0200 Subject: [PATCH] FreeBSD compat --- .bash_aliases | 6 +++++- .bashrc | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index baf3889..8099967 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -1,6 +1,10 @@ alias sudo='sudo ' -alias ls='ls --color=auto' +if [ "$OSTYPE" == "FreeBSD" ]; then + alias ls='ls --color=auto' +else + alias ls='ls -D' +fi alias ll='ls -lih' alias la='ls -A' alias l='ls -lihA' diff --git a/.bashrc b/.bashrc index 445545c..37e0643 100644 --- a/.bashrc +++ b/.bashrc @@ -23,7 +23,9 @@ if [ -d "$HOME/.gem/ruby/2.0.0/bin" ]; then fi # Colors -eval $(dircolors -b) +if [ "$OSTYPE" != "FreeBSD" ]; then + eval $(dircolors -b) +fi # append to the history file, don't overwrite it shopt -s histappend