-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
50 lines (39 loc) · 1.53 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
echo "====> Running setup..."
type brew
if [ $? -ne 0 ]; then
echo "====> Install Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
echo "====> Login App Store..."
open -a App\ Store
echo "Press any keys when the login is complete."
read
echo "====> Install applications with Homebrew..."
brew bundle
exec $SHELL -l
echo "====> Install Poetry..."
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
echo "====> Install Logitech Options..." # TODO: Use Homebrew after cask updating. https://github.com/Homebrew/homebrew-cask-drivers/pull/1581
open https://www.logitech.com/en-us/product/options
echo "Press any keys when the installation is complete."
read
echo "====> Install Snap camera..."
open https://snapcamera.snapchat.com/download/
echo "Press any keys when the installation is complete."
read
echo "====> Setup MacTex..."
sudo tlmgr update --self --all
sudo tlmgr paper a4
echo "====> Setup dotfiles..."
RCRC=$HOME/src/github.com/zaimy/dotfiles/rcm/rcrc rcup
ln -s "$HOME/src/github.com/zaimy/dotfiles/vscode/settings.json" "~/Library/Application\ Support/Code/User/settings.json"
echo "====> Setup envchain..."
envchain --set --noecho cws CWS_URL CWS_USERID CWS_PASSWORD
echo "====> Install Fisher..."
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
echo "====> Finishing..."
echo "Exec below commands in fish shell."
echo "- fisher"
echo "- poetry config virtualenvs.in-project true"
fish