aboutsummaryrefslogtreecommitdiffstats
path: root/bash_include
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2013-12-05 02:26:38 +0800
committerLAN-TW <lantw44@gmail.com>2013-12-05 02:26:38 +0800
commit55bbfc2533f67e20cb60b0a47362740cddce7919 (patch)
treefc7f789822fcb3de5332ef13ad32f63cb27b851d /bash_include
parent90ed0093caf874a6a91d9013d84e66cd513bb6a6 (diff)
downloadconfigfile-55bbfc2533f67e20cb60b0a47362740cddce7919.tar
configfile-55bbfc2533f67e20cb60b0a47362740cddce7919.tar.gz
configfile-55bbfc2533f67e20cb60b0a47362740cddce7919.tar.bz2
configfile-55bbfc2533f67e20cb60b0a47362740cddce7919.tar.lz
configfile-55bbfc2533f67e20cb60b0a47362740cddce7919.tar.xz
configfile-55bbfc2533f67e20cb60b0a47362740cddce7919.tar.zst
configfile-55bbfc2533f67e20cb60b0a47362740cddce7919.zip
bash_include: 讓 FreeBSD ls 的彩色看起來和 GNU ls 很像
Diffstat (limited to 'bash_include')
-rw-r--r--bash_include9
1 files changed, 7 insertions, 2 deletions
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)