-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.sh
31 lines (24 loc) · 957 Bytes
/
init.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
#!/usr/bin/env bash
# git check
if [[ ! -x $(command -v git) ]]; then
echo "please install git !! "
exit
fi
# homeshick and link
#if ! which homeshick > /dev/null; then
if [[ ! -x $(command -v homeshick) ]]; then
git clone https://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
${HOME}/.homesick/repos/homeshick/bin/homeshick clone muratam/dotfiles
fi
# zsh
[[ ! -e ~/.zsh ]] && mkdir ~/.zsh
git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.zsh/zsh-syntax-highlighting
git clone https://github.com/seebi/dircolors-solarized ~/.zsh/dircolors-solarized
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.zsh/zsh-autosuggestions
# vim
plug_file="${HOME}/.vim/autoload/plug.vim"
if [[ ! -f $plug_file ]];then
curl -Lo $plug_file --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi
# install recommended command
bash ${HOME}/.homesick/repos/dotfiles/recommend.sh