-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
executable file
·47 lines (40 loc) · 1.06 KB
/
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
#!/bin/bash
CURRENT_DIR=`pwd`
# append zshrc config
if [ -e ${CURRENT_DIR}/zshrc ];
then
cat zshrc >> ${HOME}/.zshrc
if [ -e ${CURRENT_DIR}/powerlevel9k/powerlevel9k.zsh-theme ];
then
# link zsh custom theme
ln -sf ${CURRENT_DIR}/powerlevel9k ${HOME}/.oh-my-zsh/custom/themes/powerlevel9k
fi
fi
# link slate config file
ln -f ${CURRENT_DIR}/slate ${HOME}/.slate
# link tmux config file
if [ -e ${CURRENT_DIR}/k-tmux/install.sh ];
then
sh -x ${CURRENT_DIR}/k-tmux/install.sh
else
echo '[WARNING] t-mux install script is not exists.'
fi
# link git config file
if [ -e ${CURRENT_DIR}/gitconfig ];
then
if [ "$(uname -s)" == "Darwin" ]; then
brew install diff-so-fancy
fi
ln -f ${CURRENT_DIR}/gitconfig ${HOME}/.gitconfig
else
echo '[WARNING] git config file is not exists.'
fi
# link flake8 config file
if [ -e ${CURRENT_DIR}/flake8 ];
then
ln -f ${CURRENT_DIR}/flake8 ${HOME}/.flake8
else
echo '[WARNING] flake8 config file is not exists.'
fi
# install k-vim
(cd ${CURRENT_DIR}/k-vim || exit) && sh -x install.sh