Fix: ls --color=auto does not work in NetBSD.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 02 Jun 2016 16:53:01 +0300
changeset 799 c85ac0f4c0f5
parent 798 a976c73e4873
child 800 3af8147163dc
Fix: ls --color=auto does not work in NetBSD.
.bashrc
--- a/.bashrc	Thu Jun 02 16:15:01 2016 +0300
+++ b/.bashrc	Thu Jun 02 16:53:01 2016 +0300
@@ -136,7 +136,9 @@
 
 # LANG=C for speed.
 alias grep='GREP_COLOR="31;47" LANG=C grep -n --color=auto'
-alias ls='ls --color=auto'
+case $OSTYPE in
+  linux*|cygwin) alias ls='ls --color=auto' ;;
+esac
 alias minicom='minicom -c on'
 
 # Weeks start on Monday.