-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mrconfig
33 lines (30 loc) · 1.08 KB
/
.mrconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[DEFAULT]
git_gc = git gc "$@"
jobs = 5
include =
if [ -f $HOME/.config/mr/config.d-$HOSTNAME/vc ]; then
cat $HOME/.config/mr/config.d-$HOSTNAME/vc
for conf in $HOME/.config/mr/config.d-$HOSTNAME/*; do
[ $conf != vc ] && test -x $conf && $conf || cat $conf
done
else
mkdir -p $HOME/.config/mr/config.d-$HOSTNAME
cd "$HOME/.config/mr/config.d-$HOSTNAME" || exit
if [ $HOSTNAME != vps ]; then
for l in $(command ls "$HOME/.config/mr/available.d"); do
if [ -d "$HOME/.config/mr/available.d/$l" ]; then
ln -sf ../available.d/"$l"/* .
elif [ -f "$HOME/.config/mr/available.d/$l" ]; then
ln -sf ../available.d/"$l" .
fi
done
else
ln -s ../available.d/vc/vc .
fi
cat $HOME/.config/mr/config.d-$HOSTNAME/vc
for conf in $HOME/.config/mr/config.d-$HOSTNAME/*; do
[ $conf != vc ] && test -x $conf && $conf || cat $conf
done
fi
[ALIAS]
# vim: ft=ini syntax=bash