Browse Source

Use LS_OPTIONS instead of replacing the command with an alias

Taddeus Kroes 6 năm trước cách đây
mục cha
commit
c461b75c3e
1 tập tin đã thay đổi với 2 bổ sung và 1 xóa
  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'