From 55bbfc2533f67e20cb60b0a47362740cddce7919 Mon Sep 17 00:00:00 2001 From: LAN-TW Date: Thu, 5 Dec 2013 02:26:38 +0800 Subject: =?UTF-8?q?bash=5Finclude:=20=E8=AE=93=20FreeBSD=20ls=20=E7=9A=84?= =?UTF-8?q?=E5=BD=A9=E8=89=B2=E7=9C=8B=E8=B5=B7=E4=BE=86=E5=92=8C=20GNU=20?= =?UTF-8?q?ls=20=E5=BE=88=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash_include | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bash_include') diff --git a/bash_include b/bash_include index cef7a46..9e8117e 100644 --- a/bash_include +++ b/bash_include @@ -127,8 +127,13 @@ alias less='less -RS' alias grep='grep --color=always' case "$OSTYPE" in - *gnu*) alias ls='ls --color=always -F' ;; - *freebsd*) alias ls='CLICOLOR=1 CLICOLOR_FORCE=1 ls -F' ;; + *gnu*) + alias ls='ls --color=always -F' + ;; + *freebsd*) + alias ls='CLICOLOR=1 CLICOLOR_FORCE=1 ls -F' + export LSCOLORS='ExGxFxdxCxDxDxhbadacad' + ;; esac # Non-aliased common tools (safe for use in script) -- cgit v1.2.3