-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·50 lines (40 loc) · 942 Bytes
/
install.sh
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
44
45
46
47
48
49
50
#!/bin/sh
# Highly inspired from sontek (John Anderson) dotfiles
if [ ! -d ~/.vimundo ] ; then
mkdir ~/.vimundo
fi
link_file () {
source="${1}"
target="${2}"
if [ "$(readlink -f ${target})" = "$(readlink -f ${source})" ] ; then
# file already patched, skip
return
fi
if [ -e "${target}" ]; then
mv $target $target.bak
fi
ln -sf ${source} ${target}
}
link_home () {
source="${PWD}/$1"
target="$(echo ${HOME}/${1} | sed 's/_/./1')"
link_file "${source}" "${target}"
}
if [ "$1" = "vim" ]; then
for i in _vim*
do
link_home $i
done
else
for i in _*
do
link_home $i
done
fi
link_file "${PWD}/dropboxpublic.desktop" "${HOME}/.kde/share/kde4/services/ServiceMenus/dropboxpublic.desktop"
git submodule sync
git submodule update --init --recursive
git submodule update --recursive
# setup command-t
cd _vim/bundle/command-t
rake make