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