support for different freebsd versions

This commit is contained in:
Rodolphe Breard 2013-04-24 17:16:14 +02:00
parent 88cdbed5db
commit 56d05f5c2a
2 changed files with 5 additions and 2 deletions

View file

@ -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'

View file

@ -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