summaryrefslogtreecommitdiffstats
path: root/base/aaabasicfs/dircolors.sh
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:26:37 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:26:37 +0200
commit31cae2538311f58c8bba5441313d041436f11ce6 (patch)
treecc1fef0aaed8a6affc57b8abff2f8cf7690bb6c1 /base/aaabasicfs/dircolors.sh
downloadnutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.tar.gz
nutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.tar.bz2
nutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.tar.xz
nutyx-extra-31cae2538311f58c8bba5441313d041436f11ce6.zip
Ajout de aaabasicfs#2009-1
Diffstat (limited to 'base/aaabasicfs/dircolors.sh')
-rw-r--r--base/aaabasicfs/dircolors.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/base/aaabasicfs/dircolors.sh b/base/aaabasicfs/dircolors.sh
new file mode 100644
index 000000000..873d91b9b
--- /dev/null
+++ b/base/aaabasicfs/dircolors.sh
@@ -0,0 +1,9 @@
+# Setup for /bin/ls to support color, the alias is in /etc/bashrc.
+if [ -f "/etc/dircolors" ] ; then
+ eval $(dircolors -b /etc/dircolors)
+
+ if [ -f "$HOME/.dircolors" ] ; then
+ eval $(dircolors -b $HOME/.dircolors)
+ fi
+fi
+alias ls='ls --color=auto'