-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall.sh
executable file
·62 lines (48 loc) · 947 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
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh
set -e
BASEDIR=`dirname $0`
#
umask 077
# submodule init
git submodule update --init
#
cp ${BASEDIR}/.inputrc ~/
#
cp ${BASEDIR}/.bashrc ~/
cp ${BASEDIR}/.profile ~/
cp ${BASEDIR}/.zshrc ~/
if [ ! -e ~/.bashrc.local ]; then
cp ${BASEDIR}/.bashrc.local ~/
fi
if [ ! -e ~/.zshrc.local ]; then
cp ${BASEDIR}/.zshrc.local ~/
fi
#
if [ ! -e ~/.screenrc ]; then
cp ${BASEDIR}/.screenrc ~/
fi
cp ${BASEDIR}/.tmux.conf ~/
#
cp ${BASEDIR}/.gitconfig ~/
if [ ! -e ~/.gitconfig.local ]; then
cp ${BASEDIR}/.gitconfig.local ~/
fi
#
cp ${BASEDIR}/.gdbinit ~/
#
cp ${BASEDIR}/.wgetrc ~/
#
cp ${BASEDIR}/.sqliterc ~/
#
cp ${BASEDIR}/.psqlrc ~/
# nvim
mkdir -p ~/.config || true
ln -fs ../.vim ~/.config/nvim
# vim
mkdir -p ~/.vim/ || true
rsync -a ${BASEDIR}/.vim/ ~/.vim/
chmod 700 ~/.vim/
vim +PlugUpdate +PlugClean\! +q +q
#
diff -ruN --color .bashrc.local ~/.bashrc.local
diff -ruN --color .zshrc.local ~/.zshrc.local