From 56d05f5c2a70c7a1624ac861e6378b0a436d9063 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Wed, 24 Apr 2013 17:16:14 +0200 Subject: [PATCH] support for different freebsd versions --- .bash_aliases | 2 +- .bashrc | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 14467de..9046246 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -1,6 +1,6 @@ alias sudo='sudo ' -if [ "$OSTYPE" == "FreeBSD" ]; then +if [ "$OS_TYPE" == "freebsd" ]; then alias ls='ls -G' else alias ls='ls --color=auto' diff --git a/.bashrc b/.bashrc index 37e0643..8208cfe 100644 --- a/.bashrc +++ b/.bashrc @@ -22,8 +22,11 @@ if [ -d "$HOME/.gem/ruby/2.0.0/bin" ]; then export PATH="$PATH:$HOME/.gem/ruby/2.0.0/bin" fi +# OS +OS_TYPE=$(echo "$OSTYPE" | sed 's/\([a-zA-Z_\-]*\).*/\1/g') + # Colors -if [ "$OSTYPE" != "FreeBSD" ]; then +if [ "$OS_TYPE" != "freebsd" ]; then eval $(dircolors -b) fi