summaryrefslogtreecommitdiffstats
path: root/ship/src/fix_dircolors
blob: d427563f7e55d30130003c8d8740d5809f9b5cba (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;36/' $HOME/.dircolors
! grep -q 'dircolors' $HOME/.profile && \
	info "adding dircolors line to $HOME/.profile" && \
	echo 'eval `dircolors -b $HOME/.dircolors`' >> $HOME/.profile
info "done"