Browse Source

Use LS_OPTIONS instead of replacing the command with an alias

Taddeus Kroes 6 years ago
parent
commit
c461b75c3e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bashrc

+ 2 - 1
bashrc

@@ -66,7 +66,8 @@ unset color_prompt
 # enable color support of ls and grep
 if [ -x /usr/bin/dircolors ]; then
     test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
-    alias ls='ls --color=auto'
+    export LS_OPTIONS="--color=auto"
+    #alias ls='ls --color=auto'
     #alias dir='dir --color=auto'
     #alias vdir='vdir --color=auto'