summaryrefslogtreecommitdiffstats
path: root/ship/src/fix_dircolors
blob: b2e2ffdb84f06044a95d29a47797dd9255ff51e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#@info
#@strict
#@include 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"