-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·52 lines (41 loc) · 1.54 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
48
49
50
51
52
#!/bin/sh
create_dir() {
if [ ! -d $1 ]; then
mkdir -p $1
fi
}
create_dir ~/.bundle/
create_dir ~/.vim/undo
create_dir ~/.vim/swap
create_dir ~/.vim/backup
if [ ! -x "`which fzf`" ]; then
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
fi
DOTFILES_DIR=$HOME/dotfiles
ln -sf $DOTFILES_DIR/zshenv $HOME/.zshenv
ln -sf $DOTFILES_DIR/zshrc $HOME/.zshrc
ln -sf $DOTFILES_DIR/gemrc $HOME/.gemrc
ln -sf $DOTFILES_DIR/gitconfig $HOME/.gitconfig
ln -sf $DOTFILES_DIR/gitignore_global $HOME/.gitignore_global
ln -sf $DOTFILES_DIR/ideavimrc $HOME/.ideavimrc
ln -sf $DOTFILES_DIR/railsrc $HOME/.railsrc
ln -sf $DOTFILES_DIR/ripgreprc $HOME/.ripgreprc
ln -sf $DOTFILES_DIR/tigrc $HOME/.tigrc
ln -sf $DOTFILES_DIR/tmux.conf $HOME/.tmux.conf
ln -sf $DOTFILES_DIR/vimrc $HOME/.vimrc
ln -sf $DOTFILES_DIR/bundle_config $HOME/.bundle/config
ln -sfn $DOTFILES_DIR/.zsh $HOME/.zsh
if !(type "cargo" > /dev/null 2>&1); then
curl https://sh.rustup.rs -sSf | sh
fi
if !(type "diff-highlight" > /dev/null 2>&1); then
ln -s /usr/local/share/git-core/contrib/diff-highlight/diff-highlight /usr/local/bin/diff-highlight
fi
# dein.vim install
#curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh && sh ./installer.sh ~/.vim/dein
if [ ! -x "`which nodenv`" ]; then
curl -fsSL https://raw.githubusercontent.com/nodenv/nodenv-installer/master/bin/nodenv-installer | bash
fi
git clone --depth 1 https://github.com/k-takata/minpac.git ~/.vim/pack/minpac/opt/minpac
echo 'export MAKE="make -j8"' >> $home/.zsh_profile