-
Notifications
You must be signed in to change notification settings - Fork 1
/
mac
executable file
·110 lines (92 loc) · 2.79 KB
/
mac
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
#!/bin/bash
echo "Congrats on your new Mac! Let's get you setup, Ryan"
if ! command -v brew &> /dev/null
then
echo "***********************"
echo "* Installing Brew *"
echo "***********************"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
echo "**************************"
echo "* Installing Formula *"
echo "**************************"
brew install \
awscli \
azure-cli \
caddy \
cmake \
git \
git-extras \
git-secrets \
imagemagick \
jq \
nvm \
python \
reattach-to-user-namespace \
shellcheck \
terraform \
the_silver_searcher \
tmux \
vim \
watch \
zsh
echo "***************************"
echo "* Installing Heroku CLI *"
echo "**************************"
brew tap heroku/brew && brew install heroku
echo "************************"
echo "* Installing Casks *"
echo "************************"
brew install --cask \
1password \
alfred \
bartender \
docker \
gpg-suite-no-mail \
iterm2 \
nvalt \
obs \
recordit \
rocket \
sequel-pro \
xbar
echo "***********************"
echo "* Setup oh-my-zsh *"
echo "***********************"
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/cromwellryan/git-poooosh.git "$HOME/.oh-my-zsh/custom/plugins/git-poooosh"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
echo "************************"
echo "* Setup Dotfiles *"
echo "************************"
if [ ! -d ~/dotfiles ]; then
git clone https://github.com/cromwellryan/dotfiles.git ~/dotfiles
fi
cd ~/dotfiles
ln -sf "$PWD/cromwell.zsh-theme" "$HOME/.oh-my-zsh/themes/cromwell.zsh-theme"
mkdir -p "~/Library/Application Support/xbar/"
ln -sf "$PWD/dotfiles" "~/Library/Application Support/xbar/plugins"
for link in .agignore .bash_gpg .bash_profile .bashrc .gitconfig .gitignore .gitmessage.txt .profile .tern-project .tmux.conf .vimrc .zshenv .zshrc tmuxinator.zsh .vim; do
if [ -L "$HOME/$link" ]; then
echo "Link '$link' exists"
else
ln -sf "$PWD/$link" "$HOME/$link"
fi
done
echo "*****************"
echo "* Setup NVM *"
echo "*****************"
NODE_VERSION=14 PROFILE=/dev/null sh -c "$(curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh)"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
echo "****************"
echo "* Setup Vim *"
echo "****************"
if [ ! -d ~/.vim/bundle/Vundle.vim ]; then
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
fi
vim -c "BundleInstall" -c ":qa"
cd ~/.vim/bundle/YouCompleteMe
python3 install.py --js-completer --ts-completer
brew tap homebrew/cask-fonts
brew install --cask font-fira-code