-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.sh
executable file
·56 lines (42 loc) · 1.37 KB
/
bootstrap.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
53
54
55
56
#!/usr/bin/env bash
source bin/functions
export DOTFILES_HOME="$HOME/src/rsanheim/dotfiles"
export DOTFILES_PRIVATE_HOME="$HOME/src/rsanheim/dotfiles-private"
mkdir -p "$HOME"/src/rsanheim
mkdir -p "$HOME"/src/oss
mkdir -p "$HOME"/work
ln -sf "$DOTFILES_HOME"/.asdfrc ~
ln -sf "$DOTFILES_HOME"/.atom/ ~
ln -sf "$DOTFILES_HOME"/.bash_profile ~
ln -sf "$DOTFILES_HOME"/.bashrc ~
ln -sf "$DOTFILES_HOME"/.default-gems ~
ln -sf "$DOTFILES_HOME"/.gitconfig ~
ln -sf "$DOTFILES_HOME"/.gitignore ~
ln -sf "$DOTFILES_HOME"/.vimrc ~
# ./bin/clone-personal
ln -sf "$DOTFILES_PRIVATE_HOME"/ssh_config ~/.ssh/config
if is_osx; then
echo
echo "Installing brew bundle..."
pushd "$DOTFILES_HOME" || exit
brew bundle
popd || exit 1
fi
if [[ $SHELL != "/opt/homebrew/bin/bash" ]]; then
echo "Changing shell to homebrew bash..."
echo "/opt/homebrew/bin/bash" | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/bash
fi
echo "Setting up asdf..."
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf plugin-add pnpm
echo
echo "Installing Rubies..."
./bin/install-rubies
# setup Vundle for vim
git -C ~/.vim/bundle/Vundle.vim pull || git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# install plugins via vim + vundle
vim +PluginInstall +qall
source "$HOME/.bashrc"
echo "==> All done!"