summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-12-29 04:06:09 +0100
committerlassulus <lassulus@googlemail.com>2013-12-29 04:06:09 +0100
commitd4810aa259db504383cacbee855be9ec8f6b1cf5 (patch)
treeb1a9857c502d9a0a778c5ac1d83a574f5c1c8114
parentd3bb83f9bacb360b2793f40ab4ef46486b689702 (diff)
parentc60ff6aa307e4c2eb5928bd34860c7366b765cc0 (diff)
Merge branch 'master' of github.com:krebscode/painload
-rwxr-xr-xship/src/fix_dircolors11
1 files changed, 11 insertions, 0 deletions
diff --git a/ship/src/fix_dircolors b/ship/src/fix_dircolors
new file mode 100755
index 00000000..57229210
--- /dev/null
+++ b/ship/src/fix_dircolors
@@ -0,0 +1,11 @@
+#!/bin/sh
+#@core
+exists dircolors || die "no dircolors in PATH, bailing out"
+
+info "fixing dircolors for $(id -un)"
+dircolors -p > $HOME/.dircolors
+sed -i 's/\(DIR \).*/\101;35/' $HOME/.dircolors
+! grep -q 'dircolors' $HOME/.profile && \
+ info "adding dircolors line to $HOME/.profile" && \
+ echo 'eval `dircolors -b $HOME/.dircolors`' >> $HOME/.profile
+info "done"