]> code.delx.au - dotfiles/blobdiff - .bashrc
README: firefox settings
[dotfiles] / .bashrc
diff --git a/.bashrc b/.bashrc
index d78b919c15b1e33e6767cfae6c44d37524f92211..3cdd83ca39fda8315525605f404db8a0f7ddb643 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -173,11 +173,14 @@ function aliasf {
 # ls aliases and colours #
 ##########################
 
-# GNU ls colours
-eval "$(TERM=xterm dircolors 2> /dev/null)"
-
-# BSD ls colours
-export LSCOLORS="ExFxCxDxBxEGEDABAGACAD"
+if command -v dircolors &> /dev/null; then
+    # GNU ls colours
+    eval "$(dircolors)"
+    LS_COLORS+=':ow=30;42'
+else
+    # BSD ls colours
+    export LSCOLORS="ExFxCxDxBxEGEDABAGACAD"
+fi
 
 # Lets find the ls
 if ls --color=auto -v &> /dev/null; then