-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·43 lines (35 loc) · 959 Bytes
/
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
#!/bin/bash
cwd=`pwd`
function copy {
if [ ! -f ~/.$1 -a ! -L ~/.$1 ]; then
echo "Linking $1"
ln -s $(pwd)/$1 ~/.$1
else
echo "Skipping $1"
fi
}
if [ ! -f ~/.zshrc ]; then
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
rm ~/.zshrc
fi
copy profile
copy irbrc
copy tmux.conf
copy inputrc
copy vimrc
copy gemrc
copy zshrc
copy fzf.zsh
copy gitignore_global
if [ ! -f ~/.gitconfig ]; then
cp gitconfig ~/.gitconfig
fi
if [ ! -d ~/.asdf ]; then
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.1
sudo apt-get install autoconf patch build-essential rustc libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libgmp-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev
fi
if [ ! -d ~/.vim/pack/minpac/opt/minpac ]; then
git clone https://github.com/k-takata/minpac.git ~/.vim/pack/minpac/opt/minpac
vim +PackUpdate
fi