-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup_osx.sh
More file actions
45 lines (34 loc) · 794 Bytes
/
setup_osx.sh
File metadata and controls
45 lines (34 loc) · 794 Bytes
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
#/bin/bash
# HOMEBREW
function installBREW() {
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
}
# ZSH
function installZSH() {
brew install zsh
}
# NVM
function installNVM() {
brew install nvm
}
# YARN
function installYARN() {
brew install yarn
}
# GPG
function installGPG() {
brew install gnupg
brew install pinentry-mac
}
# Install Brew if not found
command -v brew >/dev/null 2>&1 || installBREW()
# Install ZSH if not found
command -v zsh >/dev/null 2>&1 || installZSH()
# Install NVM
command -v nvm >/dev/null 2>&1 || installNVM()
# Install Yarn
command -v yarn >/dev/null 2>&1 || installYARN()
# Install GPG
command -v gpg >/dev/null 2>&1 || installGPG()
#.zshrc
ln -s ~/dotfiles/zshrc.prezto ~/.zshrc