-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathset-me-up.sh
executable file
·118 lines (95 loc) · 3.18 KB
/
set-me-up.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/bin/bash
CONFIG=$(pwd)
#-------------------------------------------------------------------------------
# install things
#-------------------------------------------------------------------------------
# Homebrew
echo "install Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew upgrade
brew update
# Install rbenv
brew install rbenv
# ZSH
echo "install ZSH..."
brew reinstall zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
if [ ! -f ~/.zshrc ]; then
ln -s ${CONFIG}/zsh/zshrc ~/.zshrc
echo "✅ Linked zshrc config to ~/.zshrc"
else
echo "✅ .zshrc file already linked, ignore"
fi
# Git
echo "install Git..."
if [ ! -f ~/.gitconfig ]; then
ln -s ${CONFIG}/git/gitconfig ~/.gitconfig
echo "✅ Linked gitconfig to ~/.gitconfig"
else
echo "✅ .gitconfig file already linked, ignore"
fi
if [ ! -f ~/.gitignore_global ]; then
ln -s ${CONFIG}/git/gitignore_global ~/.gitignore_global
echo "✅ Linked global gitignore to ~/.gitignore_global"
else
echo "✅ .gitignore_global file already linked, ignore"
fi
# Git configuration
git config core.ignorecase false
# NVM
brew reinstall nvm
nvm install 14
nvm alias default 14
# HUB
brew install hub
# YARN
brew install yarn
# Install packages
yarn global add prettier tslint
#-------------------------------------------------------------------------------
# Configure VIM
#-------------------------------------------------------------------------------
brew install vim
vim --version
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# required for YCM (You Complete Me)
brew install cmake python go
brew install fzf
$(brew --prefix)/opt/fzf/install
brew install ripgrep
if [ ! -f ~/.vimrc ]; then
ln -s ${CONFIG}/vim/vimrc ~/.vimrc
echo "✅ Linked vimrc config to ~/.vimrc"
else
echo "✅ .vimrc file already linked, ignore"
fi
if [ ! -f ~/.vim/ultisnips ]; then
ln -s ${CONFIG}/vim/ultisnips ~/.vim/ultisnips
echo "✅ Linked vim ultisnips to ~/.vim/ultisnips"
else
echo "✅ autoload config already linked, ignore"
fi
if [ ! -f ~/.vim/autoload ]; then
ln -s ${CONFIG}/vim/autoload ~/.vim/autoload
echo "✅ Linked vim autoload to ~/.vim/autoload"
else
echo "✅ autoload config already linked, ignore"
fi
vim +PluginInstall +qall
yarn global add typescript-language-server
mkdir -p ~/.vim/pack/custom/start
cd ~/.vim/pack/custom/start
git clone [email protected]:tpope/vim-vinegar.git
git clone [email protected]:tpope/vim-surround.git
git clone [email protected]:tpope/vim-commentary.git
git clone [email protected]:prabirshrestha/async.vim.git
git clone https://github.com/prabirshrestha/vim-lsp
git clone https://github.com/prabirshrestha/asyncomplete.vim
git clone https://github.com/prabirshrestha/asyncomplete-lsp.vim
git clone https://github.com/ryanolsonx/vim-lsp-typescript
git clone [email protected]:prettier/vim-prettier.git
git clone https://github.com/dyng/ctrlsf.vim
git clone https://github.com/sheerun/vim-polyglot
git clone https://github.com/styled-components/vim-styled-components
git clone https://github.com/jremmen/vim-ripgrep
git clone [email protected]:junegunn/vim-easy-align.git