-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
executable file
·35 lines (29 loc) · 944 Bytes
/
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
#!/bin/zsh
if xcode-select -p > /dev/null 2>&1; then
echo "Xcode tools alreay installed!"
else
echo "Installing xcode-select..."
xcode-select --install
fi
if brew --version > /dev/null 2>&1; then
echo "Hombrew is already installed!"
else
echo "Installing homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
if [ -d ~/.oh-my-zsh ]; then
echo "oh-my-zsh is installed"
else
echo "installing oh-my-zsh..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
brew install git
brew install asdf
brew install gnupg
brew install hub
SCREENSHOT_DIR=~/Documents/Screenshots
mkdir -p $SCREENSHOT_DIR
# set dir for screenshots
defaults write com.apple.screencapture location $SCREENSHOT_DIR
# Install ZSH 'autoupdate' plugin
git clone https://github.com/TamCore/autoupdate-oh-my-zsh-plugins $ZSH_CUSTOM/plugins/autoupdate