-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
executable file
·51 lines (50 loc) · 1.41 KB
/
init.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
#!/bin/bash
echo "Initializing..."
cd ~
echo "At"
pwd
rm -rf .bashrc .bash_profile .gitconfig .gitignore-global .emacs .emacs.d .vimrc .vim .config/nvim .config/tmux
mkdir .config
echo "Setting up bash"
ln -s .dotfiles/bash/bashrc .bashrc
ln -s .bashrc .bash_profile
echo "Setting up emacs"
ln -s .dotfiles/emacs/emacs .emacs
echo "Setting up git"
ln -s .dotfiles/git/gitconfig .gitconfig
ln -s .dotfiles/git/gitignore-global .gitignore-global
echo "Setting up vim"
ln -s .dotfiles/vim/vimrc .vimrc
ln -s .dotfiles/vim .vim
ln -s .dotfiles/vim/ideavimrc .ideavimrc
echo "Setting up NeoVim"
ln -s .dotfiles/nvim .config/nvim
echo "Setting up tmux"
ln -s .dotfiles/tmux .config/tmux
echo "Refreshing bash"
source ~/.bashrc
echo "Setting up brew"
which -s brew
if ! [[ $? == 0 ]] ; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
echo "Installing tools..."
brew install bash bash-completion bat curl emacs fd fzf git git-gui git-lfs grpcurl jq macvim perl pyenv ripgrep ruby the_silver_searcher tmux tree universal-ctags
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo "Reviewing..."
bash --version
curl --version
ctags --version
emacs --version
fd --version
fzf --version
git --version
grpcurl --version
jq --version
mvim --version
perl --version
pyenv --version
rg --version
tmux -V
tree --version
echo "Done"