-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·40 lines (33 loc) · 1.05 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
#!/bin/sh
#
# Before running this file:
# - Mac? Install brew - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# - install git
# - clone: http://github.com/kaldrenon/home
#
# package installs
HAS_BREW=$(which brew)
if [ ${HAS_BREW} = "brew not found" ]; then
sudo apt-get update
sudo apt-get install -y $(cat packages)
else
brew bundle
fi
ln -s ${pwd}/gittemplate ~/.git_template
# nvm
if [ -x $(command -V nvm) ]; then
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
fi
# rvm
if [ -x $(command -V rvm) ]; then
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable --ruby
fi
# symlinks
./symlink.sh
# neovim
pip3 install neovim
mkdir -p ~/.config/nvim
ln -s ${pwd}/.vimrc ~/.config/nvim/init.vim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim