-
Notifications
You must be signed in to change notification settings - Fork 2
/
pin
executable file
·38 lines (30 loc) · 635 Bytes
/
pin
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
#!/bin/bash
set -e
# link dotfiles
ln -sfv $(echo $(pwd)/.[^.]* | \
xargs -n1 | \
grep -v '\.config' |\
grep -v '\.git$' | \
grep -v '\.gnupg' |\
xargs) ~
# link config
mkdir -p ~/.config
find .config \
-maxdepth 1 \
-mindepth 1 \
-type d | xargs -I{} ln -sf $(realpath {}) ~/.config
# scala - sbt
mkdir -p ~/.sbt/plugins
ln -svf $(pwd)/boot.sbt ~/.sbt/plugins
# link binaries
mkdir -p ~/bin
ln -sfv $(pwd)/bin/* ~/bin
# configure trackpad on linux
if uname -a | grep "^Linux" >/dev/null; then
sudo cp 60-synaptics.conf /usr/share/X11/xorg.conf.d
fi
# services
rm -rf ~/service
cp -r service ~
echo
echo YO!