Skip to content

Instantly share code, notes, and snippets.

@trajche
Last active February 26, 2024 04:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trajche/b31f496d8994c944619b72840234da83 to your computer and use it in GitHub Desktop.
Save trajche/b31f496d8994c944619b72840234da83 to your computer and use it in GitHub Desktop.
new mac set-up
#Homebrew, Ohmy.sh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#Defaults
brew install --cask google-chrome
brew install --cask tunnelblick
#Communication Tools
brew install --cask slack
brew install --cask skype
brew install --cask telegram
brew install --cask viber
#Multimedia
brew install --cask spotify
brew install --cask figma
#Dev Tools
brew install --cask iterm2
brew install --cask phpstorm
brew install --cask tableplus
brew install --cask authy
brew install --cask visual-studio-code
brew install --cask cyberduck
brew install --cask postman
#Sync Cyberduck Bookmarks and History with iCloud
ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/Cyberduck/Bookmarks ~/Library/Group\ Containers/G69SCX94XU.duck/Library/Application\ Support/duck/Bookmarks
ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/Cyberduck/History ~/Library/Group\ Containers/G69SCX94XU.duck/Library/Application\ Support/duck/History
#Sync iTerm2 Settings with iCloud
# Specify the preferences directory
defaults write com.googlecode.iterm2 PrefsCustomFolder -string "~/Library/Mobile Documents/com~apple~CloudDocs/iTerm2"
# Tell iTerm2 to use the custom preferences in the directory
defaults write com.googlecode.iterm2 LoadPrefsFromCustomFolder -bool true
#Dev CLI
xcode-select --install
brew install php
brew install mariadb
brew install composer
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.zshrc
brew install wp-cli
brew install yarn
brew install docker
pecl install mongodb
pecl install ngrok
#Install Valet
composer global require laravel/valet:"^3.0"
valet install
sudo valet trust
#Corp
brew install --cask microsoft-office
brew install --cask microsoft-teams
#Have the dock show only active apps
defaults write com.apple.dock static-only -bool true; killall Dock
#Salesforce CLI
brew install --cask sfdxcli
#Hide the desktop icons
defaults write com.apple.finder CreateDesktop false
killall Finder
# Allow using of fingerprint for sudo commands
sudo cp /etc/pam.d/sudo /etc/pam.d/sudo.bck
sudo bash -c 'echo "auth sufficient pam_tid.so" >> /etc/pam.d/sudo'
sudo sed -i '1 i\auth sufficient pam_tid.so' /etc/pam.d/sudo
@trajche
Copy link
Author

trajche commented Oct 26, 2021

Disable the annoying Apple Music launching on Bluetooth connection:
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment