Skip to content

Commit bce5b2b

Browse files
committed
update setup-mac script
1 parent 23265b9 commit bce5b2b

File tree

1 file changed

+29
-15
lines changed

1 file changed

+29
-15
lines changed

script/setup-mac.sh

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,37 @@
11
# for mac, zsh
22
echo 'setopt interactivecomments' >> ~/.zshrc && source ~/.zshrc
33

4-
brew cask install rectangle
5-
brew cask install firefox
6-
brew cask install app-cleaner
7-
brew cask install zoomus
8-
brew cask install visual-studio-code
9-
brew cask install dropbox
10-
brew cask install java
11-
brew cask install anaconda
4+
# install brew, the script maybe interactive (need password and confirm) so need mDLp1i3o2i395^epi2
5+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
6+
7+
# - Run these two commands in your terminal to add Homebrew to your PATH:
8+
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/hyunwoolee/.zprofile
9+
eval "$(/opt/homebrew/bin/brew shellenv)"
10+
11+
brew install hyper
12+
brew install wget
13+
brew install pyenv
14+
15+
brew install rectangle
16+
brew install firefox
17+
brew install app-cleaner
18+
brew install zoom
19+
brew install visual-studio-code
20+
brew install obsidian
21+
brew install dropbox
22+
brew install java
23+
brew install karabiner-elements
24+
# brew install anaconda
1225

1326
brew install graphviz
1427
brew install asciinema
1528
brew install gpg
16-
17-
brew install wget
29+
brew install tree
1830

1931
# install oh-my-zsh
2032
# cannot install oh-my-zsh with brew
2133
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
2234

23-
brew install hyper
2435
brew install macs-fan-control
2536
brew install scroll-reverser
2637
brew install gpg2
@@ -31,7 +42,7 @@ brew install podman
3142
brew install podman-compose
3243
brew install podman-desktop
3344
brew install fnm # or use setup script: curl -fsSL https://fnm.vercel.app/install | bash (dependencies: curl, unzip)
34-
"$(fnm env --use-on-cd)" >> ~/.zshrc
45+
echo "eval \"\$(fnm env --use-on-cd)\"" >> ~/.zshrc
3546
source ~/.zshrc
3647

3748
fnm install 20
@@ -44,23 +55,26 @@ git config --global core.editor 'code --wait'
4455
git config --global user.name "Hyunwoo Lee"
4556
git config --global user.email "[email protected]"
4657

47-
# get gpg signing key for user.signingKey
58+
# get gpg signing key for user.signingKey (need to generate one before run)
4859
SIGNING_KEY=$(gpg --list-secret-keys --keyid-format LONG | grep sec | awk '{print $2}' | awk -F'/' '{print $2}')
4960

5061
# NOTE: manually install 'GPG indicator' extension in VSCode to unlock keys which passphrase is not empty
5162

5263
git config --global user.gpgSign true
53-
git config --global user.signingKey "${GPG_KEY_ID}"
64+
git config --global user.signingKey "${SIGNING_KEY}"
5465
git config --global init.defaultBranch "main"
5566
git config --global commit.gpgSign true
5667
# git config --global commit.program gpg2
5768

69+
# vscode extensions
70+
code --install-extension ms-vscode-remote.remote-ssh
5871

5972
# install rustup: https://www.rust-lang.org/tools/install
6073
# (interactive script)
6174
# > curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
6275
# (automatic script)
6376
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
77+
source "$HOME/.cargo/env"
6478

6579
# 10688 cd install-sources
6680
# 10689 ls
@@ -82,4 +96,4 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
8296
# 10705 brew install bottom
8397
# 10706 brew install -f gdu
8498
# 10707 brew link --overwrite gdu # if you have coreutils installed as well
85-
# 10708 nvim
99+
# 10708 nvim

0 commit comments

Comments
 (0)