From d9fbecd579fc4881b7abffd8aaab06666286dfcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 7 May 2017 19:21:29 +0200 Subject: ls colors support FreeBSD --- shellrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shellrc b/shellrc index ce625aa..c357ef0 100644 --- a/shellrc +++ b/shellrc @@ -4,7 +4,11 @@ # Continue only if this is interactive shell [[ $- != *i* ]] && return -alias ls='ls --color=auto' +if [ "$(uname -s)" = "FreeBSD" ]; then + alias ls='ls -G' +else + alias ls='ls --color=auto' +fi alias ll='ls -l' eval $(dircolors -b) alias grep='grep --color=auto' -- cgit v1.2.3