-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·44 lines (36 loc) · 1.27 KB
/
setup.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
#!/usr/bin/env bash
##
# Initial setup for a Mac.
##
set -e
# homebrew cd's when it installs, so keep track of
# where we start to be able to get back.
STARTING_DIR=$(pwd)
# Install homebrew and system packages.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
/opt/homebrew/bin/brew install bash node python3 vim wget cmake git bash-completion@2
/opt/homebrew/bin/brew install --cask font-hack
cp shell/zshrc ~/.zshrc
# Setup links to iCloud files.
ln -s $HOME/Documents/Scripts $HOME/Scripts
ln -s $HOME/Library/Mobile\ Documents/com~apple~CloudDocs $HOME/iCloud
ln -s $HOME/Library/Mobile\ Documents/com~apple~CloudDocs/Developer $HOME/Developer
# This is really only needed so the vim install
# below can find everything in the correct PATH.
source ~/.zshrc
##
# vim
##
cd $STARTING_DIR
VIMHOME=$HOME/.vim
VIMCOLORS=$VIMHOME/colors
VIMBUNDLE=$VIMHOME/bundle
cp vim/vimrc $HOME/.vimrc
mkdir -p $VIMCOLORS
wget https://raw.githubusercontent.com/gosukiwi/vim-atom-dark/refs/heads/master/colors/atom-dark-256.vim \
-O $VIMCOLORS/atom-dark-256.vim
cp vim/hyperhacking.vim $VIMCOLORS
git clone https://github.com/VundleVim/Vundle.vim.git $VIMBUNDLE/Vundle.vim
vim +PluginInstall +qall
cd $VIMBUNDLE/YouCompleteMe
python3 install.py --ts-completer