-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·51 lines (40 loc) · 1.32 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
brew bundle
# Finish fzf install
read -p "Do you wish to run the fzf installer (y/n)?" yn
case $yn in
[Yy]* ) $(brew --prefix)/opt/fzf/install;;
esac
# Symlink kitty terminal config
ln -sv "$PWD/kitty.conf" "$HOME/.config/kitty"
# Symlink brewfile
ln -sv "$PWD/Brewfile" "$HOME"
# Symlink terminal config
ln -sv "$PWD/.aliases" "$HOME"
ln -sv "$PWD/.zshrc" "$HOME"
# Symlink vim config
if [ ! -e $HOME/.vim/autoload/plug.vim ]; then
curl -fLo $HOME/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi
vim -u $HOME/.vimrc.bundles +PlugInstall +PlugClean! +qa
ln -sv "$PWD/.vimrc" "$HOME"
ln -sv "$PWD/.vimrc.bundles" "$HOME"
mkdir -p "$HOME/.config/nvim/"
ln -sv "$PWD/init.vim" "$HOME/.config/nvim"
# Symlink git config
ln -sv "$PWD/.gitconfig" "$HOME"
ln -sv "$PWD/.gitmessage" "$HOME"
ln -sv "$PWD/.gitattributes" "$HOME"
ln -sv "$PWD/.gitignore" "$HOME"
git config --global core.attributesfile ~/.gitattributes
# asdf config
ln -sv "$PWD/.asdfrc" "$HOME"
ln -sv "$PWD/.tool-versions" "$HOME"
# set deployment target for erlang
# remove when targeting a more modern erlang release
export MACOSX_DEPLOYMENT_TARGET=10.0
asdf plugin add ruby
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf plugin add elixir
asdf plugin add erlang
(cd ~; asdf install)