forked from driesvints/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfresh.sh
executable file
·39 lines (28 loc) · 1.02 KB
/
fresh.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
#!/bin/sh
# dotfiles 경로
export DOTFILES=$HOME/.DOTFILES
echo "Setting up your Mac..."
# Oh My Zsh 설치 확인
if test ! $(which omz); then
/bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/HEAD/tools/install.sh)"
fi
# Homebrew 설치 확인
if test ! $(which brew); then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> $HOME/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# 기존에 .zshrc 가 있다면 제거하고, .dotfiles/.zshrc 를 심볼링 링크로 연결
rm -rf $HOME/.zshrc
ln -sw ${DOTFILES}/.zshrc $HOME/.zshrc
# Homebrew telemetry 끄기
brew analytics off
# Homebrew 레시피 업데이트
brew update
# homebrew Bundle로 일괄 설치 실행(cf. taking.Brewfile)
brew tap homebrew/bundle
brew bundle --file=./brewfile/taking.Brewfile
# Set macOS preferences - we will run this last because this will reload the shell
source ./.macos
# Set Configuration
source ./.config