Last active
April 5, 2026 05:23
-
-
Save pungoyal/4c3c5ef494dbd1a515d8559fb29fa9db to your computer and use it in GitHub Desktop.
Setup from scratch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install & login bitwarden from app store | |
| # pick a name you want | |
| sudo scutil --set HostName macbook-m2 | |
| sudo scutil --set ComputerName macbook-m2 | |
| sudo scutil --set LocalHostName macbook-m2 | |
| dscacheutil -flushcache | |
| defaults write -g InitialKeyRepeat -int 9 | |
| defaults write -g KeyRepeat -int 1 | |
| defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false | |
| defaults write NSGlobalDomain com.apple.sound.uiaudio.enabled -int 0 | |
| sudo nvram StartupMute=%01 | |
| # remap caps to escape | |
| # software update from system preferences | |
| # homebrew | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| #icloud | |
| enable documents and desktop in icloud settings | |
| # restart for keyboard changes to take effect | |
| brew install mas | |
| brew install --cask font-jetbrains-mono-nerd-font ghostty maccy | |
| # change the iterm->profiles->colours->colour presets->Pastel(Dark Background) | |
| # change the iterm->profiles->text->font->JetBrainsMonoNL Nerd Font Mono | |
| # change the iterm->profiles->window->(transparency->15,blur->20) | |
| # change the iterm->profiles->window->setting for new windows->210,60 | |
| # fish and settings | |
| brew install fish fzf fisher | |
| echo `which fish` | sudo tee -a /etc/shells | |
| chsh -s `which fish` | |
| fish_add_path /opt/homebrew/bin | |
| fish_add_path /opt/homebrew/sbin | |
| fisher install IlanCosman/tide@v6 jorgebucaran/autopair.fish PatrickF1/fzf.fish # jhillyerd/plugin-git | |
| # ln -sf /Users/puneet.goyal/Library/Mobile\ Documents/com~apple~CloudDocs/laptop/fish_history ~/.local/share/fish/fish_history | |
| mkdir -p ~/work | |
| # nvm and node | |
| brew install fnm | |
| echo 'fnm env --use-on-cd --shell fish | source' > ~/.config/fish/conf.d/fnm.fish | |
| fnm install --latest | |
| fnm install --lts --use | |
| # from app store, via mas | |
| # whatsapp-messenger telegram pages numbers keynote xcode | |
| mas install 310633997 747648890 | |
| mas install 361309726 361304891 361285480 | |
| mas install 497799835 | |
| brew fetch claude google-chrome brave-browser zoom visual-studio-code docker-desktop protonvpn zed conductor | |
| brew install claude google-chrome brave-browser | |
| open -a "Brave Browser" brave://settings/content/sound | |
| brew install zed conductor | |
| curl -fsSL https://claude.ai/install.sh | bash | |
| fish_add_path ~/.local/bin | |
| brew install htop tmux wget telnet vim ack | |
| brew install git gpg gh | |
| brew install github gcloud-cli | |
| ----- | |
| # setup aws | |
| brew install awscli | |
| aws configure sso | |
| # copy setting from aws account. region is usually us-east-1 | |
| # setup git | |
| ln -sf /Users/puneet.goyal/Library/Mobile\ Documents/com~apple~CloudDocs/laptop/gitconfig ~/.gitconfig | |
| ln -sf /Users/puneet.goyal/Library/Mobile\ Documents/com~apple~CloudDocs/laptop/gitignore ~/.gitignore | |
| brew install git | |
| # setup keys | |
| rm -rf ~/.ssh | |
| ln -sf /Users/puneet.goyal/Library/Mobile\ Documents/com~apple~CloudDocs/laptop/ssh ~/.ssh | |
| chmod 400 ~/.ssh/id_ed25519 | |
| rm -rf ~/.gnupg | |
| ln -sf /Users/puneet.goyal/Library/Mobile\ Documents/com~apple~CloudDocs/laptop/gnupg ~/.gnupg | |
| chmod 600 ~/.gnupg/* | |
| chmod 700 ~/.gnupg | |
| gpg --list-secret-keys --keyid-format LONG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment