-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·39 lines (32 loc) · 904 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
#!/usr/bin/env bash
function link_file {
source="${PWD}/$1"
target="${HOME}/${1/_/.}"
if [ -e "${target}" ]; then
mv $target $target.bak
fi
ln -sf ${source} ${target}
}
mkdir -p _vim/bundle
if [ "$1" = "vim" ]; then
for i in _vim*
do
link_file $i
done
else
for i in _*
do
link_file $i
done
fi
git submodule sync
git submodule init
git submodule update
git submodule foreach git pull origin master
git submodule foreach git submodule init
git submodule foreach git submodule update
sudo apt-get install pyflakes
sudo pip install flake8
mkdir -p ~/.vimtmp
mkdir -p ~/.ssh/environment
echo ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAi8sv6vPtx/KOh2P9sFYEWEGCTRQOuREkKPdzqjqNeCyyJc2Gq0DZCIlU5VsRNzQUphLdWZUQXIYJAdwGQUmDlFxyjo5vhbxKeSdXulh3yKXapTl4YMYzUpum6Srymrea//0vlrMKHmod/Xr80Pht018g3CJ6M7ws+d1YrnhZRX0= key.ppk >> ~/.ssh/authorized_keys