Last active
April 14, 2023 14:23
-
-
Save pungoyal/4c3c5ef494dbd1a515d8559fb29fa9db to your computer and use it in GitHub Desktop.
Setup from scratch
This file contains 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 tap homebrew/cask | |
brew install iterm2 | |
# change the iterm->profiles->colours->colour presets->Pastel(Dark Background) | |
# install nerd font https://github.com/IlanCosman/tide#fonts | |
# fish and settings | |
brew install fish | |
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@v5 jhillyerd/plugin-git | |
ln -sf /Users/puneet.goyal/Library/Mobile\ Documents/com~apple~CloudDocs/laptop/fish_history ~/.local/share/fish/fish_history | |
# 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 | |
# 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 aws | |
mv ~/.aws ~/old-aws | |
ln -sf /Users/puneet.goyal/Library/Mobile\ Documents/com~apple~CloudDocs/laptop/aws ~/.aws | |
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 nvm rbenv jenv openjdk awscli htop tmux wget telnet vim ack terminal-notifier kubectl | |
mkdir -p ~/work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment