Skip to content

Commit 22e9a2c

Browse files
committed
update setup-mac script
1 parent 20e4514 commit 22e9a2c

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

script/setup-mac.sh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# for mac, zsh
2+
echo 'setopt interactivecomments' >> ~/.zshrc && source ~/.zshrc
3+
14
brew cask install rectangle
25
brew cask install firefox
36
brew cask install app-cleaner
@@ -14,6 +17,7 @@ brew install gpg
1417
brew install wget
1518

1619
# install oh-my-zsh
20+
# cannot install oh-my-zsh with brew
1721
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
1822

1923
brew install hyper
@@ -23,8 +27,59 @@ brew install gpg2
2327
brew install git-secret
2428
brew install shellcheck
2529

30+
brew install podman
31+
brew install podman-compose
32+
brew install podman-desktop
33+
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
35+
source ~/.zshrc
36+
37+
fnm install 20
38+
fnm use 20
39+
npm i -g pnpm
40+
pnpm setup;
41+
source ~/.zshrc;
42+
43+
git config --global core.editor 'code --wait'
44+
git config --global user.name "Hyunwoo Lee"
45+
git config --global user.email "epikem1@gmail.com"
46+
47+
# get gpg signing key for user.signingKey
48+
SIGNING_KEY=$(gpg --list-secret-keys --keyid-format LONG | grep sec | awk '{print $2}' | awk -F'/' '{print $2}')
49+
50+
# NOTE: manually install 'GPG indicator' extension in VSCode to unlock keys which passphrase is not empty
51+
52+
git config --global user.gpgSign true
53+
git config --global user.signingKey "${GPG_KEY_ID}"
54+
git config --global init.defaultBranch "main"
55+
git config --global commit.gpgSign true
56+
# git config --global commit.program gpg2
57+
58+
2659
# install rustup: https://www.rust-lang.org/tools/install
2760
# (interactive script)
2861
# > curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
2962
# (automatic script)
3063
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
64+
65+
# 10688 cd install-sources
66+
# 10689 ls
67+
# 10690 git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.config/nvim
68+
# 10691 ls
69+
# 10692 brew install nvim
70+
# 10693 nvim
71+
# 10694 ls
72+
# 10695 cd ..
73+
# 10696 ls
74+
# 10697 cd repos/streami/gopax
75+
# 10698 nvim .
76+
# 10699 brew search nerd
77+
# 10700 brew tap homebrew/cask-fonts
78+
# 10701 brew install font-hack-nerd-font
79+
# 10702 pnpm i -g tree-sitter-cli
80+
# 10703 brew install jesseduffield/lazygit/lazygit
81+
# 10704 brew install ripgrep
82+
# 10705 brew install bottom
83+
# 10706 brew install -f gdu
84+
# 10707 brew link --overwrite gdu # if you have coreutils installed as well
85+
# 10708 nvim

0 commit comments

Comments
 (0)