-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall
executable file
·41 lines (33 loc) · 1 KB
/
install
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
#!/bin/bash
VIMPLUG_PATH="$HOME/.vim/autoload/plug.vim"
HOMEBREW="/usr/loca/Homebrew"
if [[ `uname` == 'Darwin' ]]
then
# Install Homebrew & Cask
if [ ! -f "$HOMEBREW" ]; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
else
echo "HomeBrew is already installed!"
fi
brew tap Homebrew/bundle
brew bundle
else
echo "brew not supports Linux, your need manual install dependentcies."
echo "your install git, vim, tmux, zsh for the rest."
fi
# Link dotfiles
./dotup
# Install Vim-plug
if [ ! -f "$VIMPLUG_PATH" ]; then
curl -fLo $VIMPLUG_PATH --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
else
echo "Vim Plug is already installed!"
fi
vim +PlugInstall +qall
# Install Asdf
sh asdf/add_plugins.sh
asdf install
# Install fzf
$(brew --prefix)/opt/fzf/install