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