Skip to content

ayrusme/mac-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 

Repository files navigation

MacOS setup script

homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

terminal stuff

chsh -s /bin/zsh
brew install --cask iterm2
brew install romkatv/powerlevel10k/powerlevel10k
echo "source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
echo 'source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh' >>! ~/.zshrc

ssh-keygen -t ecdsa -b 521

homebrew formulae

brew install --cask google-chrome
brew install --cask arc
brew install python
[Node Version Manager](https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating)
[Clipy](https://github.com/Clipy/Clipy)
brew install gnupg
brew tap mongodb/brew
brew install mongodb-community
brew install --cask cursor
<!-- brew install --cask visual-studio-code -->
<!-- brew install --cask intellij-idea-ce -->

brew services start mongodb-community

brew install mysql
<!-- brew services start/run mysql -->
brew install postgresql
<!-- brew services start/run postgresql -->
# do not forget to create the default user for postgres
# password should be "admin"
<!-- /opt/postgresql@14/bin/createuser -s postgres -->
brew install --cask mysqlworkbench
brew install --cask mysql-shell
brew install --cask robo-3t

brew install --cask java

brew install --cask postman

brew install jupyter

brew install --cask docker
brew install kubectl
brew install kubectx
brew install fzf
brew install helm
brew install minikube
brew install stern

brew install --cask android-platform-tools
brew install scrcpy

brew install --cask obsidian
brew install --cask whatsapp
brew install --cask amethyst
brew install --cask cloudflare-warp
brew install stats
brew install --cask logi-options+
brew install defaultbrowser
# https://apps.apple.com/us/app/currentkey-stats/id1456226992?mt=12&pt=119982183&ct=currentkey

UI Tweaks

Disable the “Are you sure you want to open this application?” dialog

defaults write com.apple.LaunchServices LSQuarantine -bool false

keyboard, trackpad, mouse, and menu bar

defaults write com.apple.menuextra.battery ShowPercent YES
killall SystemUIServer

defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
defaults write -g com.apple.mouse.scaling -float 5.0

Quit finder using cmd-q

defaults write com.apple.finder QuitMenuItem -bool true

DNS

networksetup -setdnsservers Wi-Fi 1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001

git config

git config user.name “Surya Raman”
git config user.email “[email protected]

pipenv

pip3 install  pipenv

touch id for sudo

https://apple.stackexchange.com/a/306324

disable sleep ( useful in clamshell )

sudo pmset disablesleep 1

About

Commands to run when setting up new mac

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages