-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·72 lines (59 loc) · 1.43 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
brew tap chrokh/tap
brew install --HEAD universal-ctags/universal-ctags/universal-ctags
brew install \
asdf \
bash \
bash-completion@2 \
cmake \
coreutils \
curl \
docker-completion \
docker-compose-completion \
fd \
findutils \
gawk \
git \
gnu-sed \
htop \
moreutils \
ripgrep \
tmux \
v \
vim \
wget \
z
# Add the brew bash shell to the list of allowed shells
sudo bash -c 'echo /usr/local/bin/bash >> /etc/shells'
chsh -s /usr/local/bin/bash
# TPM
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# tmux.conf
mv ~/.tmuxlinesnapshot.conf ~/.tmuxlinesnapshot.conf.bak
ln -s ~/dotfiles/tmuxlinesnapshot.conf ~/.tmuxlinesnapshot.conf
mv ~/.tmux.conf ~/.tmux.conf.bak
ln -s ~/dotfiles/tmux.conf ~/.tmux.conf
# ignore
mv ~/.ignore ~/.ignore.bak
ln -s ~/dotfiles/ignore ~/.ignore
# vim
mv ~/.vim ~/.vim.bak
ln -s ~/dotfiles/vim ~/.vim
# ctags
mv ~/.ctags.d ~/.ctags.d.bak
ln -s ~/dotfiles/ctags.d ~/.ctags.d
# tern-config
mv ~/.tern-config ~/.tern-config.bak
ln -s ~/dotfiles/tern-config ~/.tern-config
# slate
mv ~/.slate.js ~/.slate.js.bak
ln -s ~/dotfiles/slate.js ~/.slate.js
# gitconfig
echo "[include]
path = ~/dotfiles/gitconfig" >> ~/.gitconfig
# vimrc
echo "so ~/dotfiles/vimrc" >> ~/.vimrc
# bash_profile
echo "source ~/dotfiles/bashrc" >> ~/.bash_profile
echo "source ~/dotfiles/bashrc" >> ~/.bashrc
source ~/.bash_profile