-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_mac.sh
More file actions
74 lines (60 loc) · 1.5 KB
/
setup_mac.sh
File metadata and controls
74 lines (60 loc) · 1.5 KB
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
#!/bin/bash
echo "Start setup"
bash ~/dotfiles/mklink.sh
bash ~/dotvim/mklink.sh
if ! type "brew" >/dev/null 2>&1; then
echo "Install brew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
if ! type "fish" >/dev/null 2>&1; then
echo "Install fish"
brew install fish
# fishをデフォルトシェルにする
echo /opt/homebrew/bin/fish | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/fish
fish
fi
# WezTerm をインストール
if [ ! -d "/Applications/WezTerm.app" ]; then
echo "Install WezTerm"
brew install --cask wezterm
else
echo "WezTerm is already installed"
fi
# 1Password をインストール
if [ ! -d "/Applications/1Password.app" ]; then
echo "Install 1Password"
brew install --cask 1password
else
echo "1Password is already installed"
fi
# denoをインストール
if ! type "deno" >/dev/null 2>&1; then
echo "Install deno"
curl -fsSL https://deno.land/install.sh | sh
fi
# aquaをインストール
if ! type "aqua" >/dev/null 2>&1; then
echo "Install aqua"
brew install aquaproj/aqua/aqua
aqua i
fi
# Vim/Neovimをインストール
if ! type "vim" >/dev/null 2>&1; then
if [ ! -d "~/.vim" ]; then
mkdir ~/.vim
fi
echo "Install vim"
brew install vim --HEAD
fi
if ! type "nvim" >/dev/null 2>&1; then
echo "Install nvim"
brew install nvim --HEAD
fi
if ! type "proto" >/dev/null 2>&1; then
brew install proto
proto install node
proto install npm
proto install pnpm
fi
echo "Finish setup"