-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·44 lines (35 loc) · 1.37 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
set -x
./update_dotfiles.sh
STATUS_FILE="./status.txt"
VUNLDE_INST_DIR=~/.vim/bundle/Vundle.vim
if [ ! -d "$VUNLDE_INST_DIR" ]; then
echo "install Vundle"
git clone https://github.com/gmarik/Vundle.vim.git $VUNLDE_INST_DIR
fi
if python -mplatform | grep -qi ubuntu; then
echo "install ubuntu packages"
CMD="sudo apt-get install -y vim exuberant-ctags build-essential cmake python-dev clang-3.7 libclang-3.7-dev"
eval $CMD || { sudo apt-get update; eval $CMD; }
elif python -mplatform | grep -qi darwin; then
echo "installing mac os packages"
if ! fgrep -qi .bashrc ~/.bash_profile; then
echo 'source ~/.bashrc' >>~/.bash_profile
fi
which brew
if test $? -ne 0; then
set +x
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
set -x
else
brew update
fi
brew install tmux
else
echo "os isn't ubuntu"
fi
vim +PluginInstall +qall || { echo "can't install vim plugins"; exit 1; }
git clone https://github.com/dracula/iterm.git ~/dracula-theme-iterm
echo "Dracula theme was downloaded, use it in iTerm2 > Preferences > Profiles > Colors Tab -> Color Presets -> Import"
# https://github.com/tmux-plugins/tpm
test -d ~/.tmux/plugins/tpm || git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
echo "Press 'CTRL+A I' in tmux to install/update tmux plugins"