blob: f321a72d84e8df38a07ed42c1e108b901adf7a3c (
plain)
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
34
35
36
37
38
39
40
41
42
43
|
#!/bin/zsh -x
symlink ()
{
for i in `find . -type d -depth 1 | grep -v .git | sed "s|./||" | grep -v by_host`; do
stow -t $HOME $i
done
}
DIRS=(.config \
.newsbeuter \
.moc \
.vim \
.mutt/tmp
)
DIRS_Linux=(.mozilla \
.ncftp \
.urxvt
)
for i in $SPECIAL; do
rm $HOME/$i
mkdir -p $HOME/$i
done
if [[ $(uname) == "Linux" ]]; then
for i $SPECIAL_Linux; do
rm $HOME/$i
mkdir -p $HOME/$i
done
fi
symlink
cd by_host/$(uname); symlink
git submodule update --init --recursive
if [[ $(uname) == "Linux" ]]; then
cd $HOME/.urxvt; ln -s urxvt-perls/clipboard .
ln -s urxvt-perls/keyboard-select .
ln -s urxvt-tabbedex/tabbedex .
ln -s urxvt-perls/url-select .
fi
|