From c60ff6aa307e4c2eb5928bd34860c7366b765cc0 Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 28 Dec 2013 19:09:22 +0100 Subject: ship: add fix_dircolors --- ship/src/fix_dircolors | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 ship/src/fix_dircolors 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" -- cgit v1.2.3