Last active
January 28, 2025 11:27
-
-
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 com.apple.systemsound "com.apple.sound.uiaudio.enabled" -int 0 | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# remap caps to escape | |
# restart for keyboard changes to take effect | |
brew install iterm2 | |
# install nerd font https://github.com/IlanCosman/tide#fonts | |
# change the iterm->profiles->colours->colour presets->Pastel(Dark Background) | |
# change the iterm->profiles->text->font->MesloLGS NF | |
# 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 | |
echo `which fish` | sudo tee -a /etc/shells | |
chsh -s `which fish` | |
fish_add_path /opt/homebrew/bin | |
brew install fisher | |
fisher install jorgebucaran/nvm.fish IlanCosman/tide@v6 jhillyerd/plugin-git jorgebucaran/autopair.fish PatrickF1/fzf.fish | |
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 | |
set --universal nvm_default_packages yarn npm | |
nvm install lts latest | |
set --universal nvm_default_version v22 | |
# 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 | |
brew install gpg pinentry-mac | |
gpg --list-secret-keys --keyid-format LONG | |
brew fetch google-drive google-chrome spotify firefox maccy slack zoom visual-studio-code homebrew/cask/docker telegram protonvpn vlc | |
brew install google-drive google-chrome maccy | |
brew install slack zoom visual-studio-code homebrew/cask/docker | |
brew install telegram protonvpn spotify firefox vlc | |
brew install jenv openjdk awscli htop tmux wget telnet vim ack terminal-notifier kubectl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment