-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·111 lines (95 loc) · 2.88 KB
/
install.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
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
111
#/bin/bash
sudo -v
echo "Installing Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
if [ "$(arch)" = "arm64" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
else
eval "$(/usr/local/bin/brew shellenv)"
fi
echo "Installing shell programs with brew"
brew install zplug
brew install bat
brew install doggo
brew install eza
brew install pygments
brew install git
brew install pyenv
brew install gnupg
brew install gh
brew install tree
brew install wget
brew install mas
brew install jesseduffield/lazygit/lazygit
brew install cloudflared
brew install awscli
brew install openjdk@17
brew install 1password-cli
echo "Installing programs with brew --cask"
brew install --cask 1password
brew install --cask visual-studio-code
brew install --cask google-chrome
brew install --cask orbstack
brew install --cask warp
brew install --cask raycast
brew install --cask figma
brew install --cask ngrok
brew install --cask tunnelbear
brew install --cask notion
brew install --cask notion-calendar
brew install --cask utm
brew install --cask httpie
brew link httpie
brew install --cask linear
brew install --cask datagrip
brew install --cask hancom-word
brew install --cask pritunl
echo "Install Font"
brew install --cask font-jetbrains-mono
brew install --cask font-hack-nerd-font
brew install --cask font-pretendard
echo "Installing Mac App Store apps"
mas install 441258766 # Magnet
mas install 869223134 # KakaoTalk
mas install 497799835 # Xcode
mas install 1265704574 # Bandizip
mas install 1519867270 # Refined Github
mas install 1231935892 # Unicorn Ad Blocker
mas install 1569813296 # 1Password for safari
mas install 1276493162 # reMarkable
mas install 1102655071 # Channel Talk
mas install 409201541 # Pages
mas install 409203825 # Numbers
mas install 409183694 # Keynote
echo "Installing KakaoTalk For Work"
sudo ./scripts/kakaotalk-for-work.sh
SCRIPT_PATH="$(pwd)/scripts/kakaotalk-for-work.sh"
crontab -l 2>/dev/null | grep -F "$SCRIPT_PATH" > /dev/null
if [ $? -ne 0 ]; then
(crontab -l 2>/dev/null; echo "0 0 * * * $SCRIPT_PATH") | crontab -
fi
echo "Installing nvm"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
echo "Installing node 22"
nvm install 22
echo "Installing python 2.7"
pyenv install 2.7.18
echo "Enable corepack for yarn"
corepack enable
yarn -v
pnpm -v
echo "Install bun"
curl -fsSL https://bun.sh/install | bash
echo "Move files"
touch ~/.zshrc.local
ln -s -f "$(pwd)/.zshrc" ~/.zshrc
ln -s -f "$(pwd)/.vimrc" ~/.vimrc
ln -s -f "$(pwd)/.gitconfig" ~/.gitconfig
ln -s -f "$(pwd)/.gitignore" ~/.gitignore
ln -s -f "$(pwd)/.ssh-config" ~/.ssh/config
ln -s -f "$(pwd)/lazygit-config.yml" ~/Library/Application\ Support/lazygit/config.yml
echo "Init zsh"
source ~/.zshrc