Skip to content

Instantly share code, notes, and snippets.

@andremachadodev
Last active May 2, 2024 23:02
Show Gist options
  • Save andremachadodev/7f47f478d7354effba2fc187c09de393 to your computer and use it in GitHub Desktop.
Save andremachadodev/7f47f478d7354effba2fc187c09de393 to your computer and use it in GitHub Desktop.
Script com preferencias de sistema e instaladores baseados nos projetos da FTD.
#! /usr/bin/env bash
echo Instalação do ambiente de trabalho e aplicativos em geral
echo CONFIGURACOES GERAIS MAC OS
echo '\n'
echo -
echo - Habilitando tabs para opções de janela
echo - ----------------------------------------
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
echo Check!
echo -
echo - Revelando a parta /Library
echo - ----------------------------------------
chflags nohidden ~/Library
echo Check!
echo -
echo - Mostrando arquivos ocultos
echo - ----------------------------------------
defaults write com.apple.finder AppleShowAllFiles YES.
echo Check!
echo -
echo - Desabilitando TimeMachine
echo - ----------------------------------------
sudo tmutil disablelocal
echo Check!
echo -
echo - Habilitando Menu > Debug para o Safari
echo - ----------------------------------------
defaults write com.apple.safari IncludeDebugMenu -bool YES
echo Check!
echo -
echo - Desabilitando opção de press/hold para que seja possível repetição de letras
echo - ----------------------------------------
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
echo Check!
echo -
echo - Salvando screenshots sempre no Desktop
echo - ----------------------------------------
defaults write com.apple.screencapture location -string "${HOME}/Desktop/Screenshots"
echo Check!
echo ...e sempre como png.
defaults write com.apple.screencapture type -string "png"
echo Check!
echo -
echo - Mostrando icones de hard drive, no desktop
echo - ----------------------------------------
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
echo Check!
echo -
echo - Mostrando extensões de arquivo
echo - ----------------------------------------
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
echo Check!
echo -
echo - Desabilitando "warning" quando um arquivo tem seu nome alterado
echo - ----------------------------------------
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
echo Check!
echo -
echo - Evitando que o sistema crie arquivo .DS em pen drives e drives externos
echo - ----------------------------------------
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
echo Check!
echo -
echo - Show/hide automático do docker
echo - ----------------------------------------
defaults write com.apple.dock autohide -bool true
echo Check!
echo -
echo - Mostrando a url completa no Safari
echo - ----------------------------------------
defaults write com.apple.Safari ShowFullURLInSmartSearchField -bool true
echo Check!
echo -
echo - Abrindo Safari sempre como about:blank
echo - ----------------------------------------
defaults write com.apple.Safari HomePage -string "about:blank"
echo Check!
echo -
echo - Sumindo com os icones de bookmark do Safari
echo - ----------------------------------------
defaults write com.apple.Safari ShowFavoritesBar -bool false
echo Check!
echo -
echo - Criando a pasta /Projects
echo - ----------------------------------------
mkdir ~/Projects
echo -
echo - Resetando o Launchpad
echo - ----------------------------------------
rm ~/Library/Application\ Support/Dock/*.db
echo Check!
echo '\n'
echo '\n'
echo INSTALAÇÕES
echo - ----------------------------------------
echo -
echo -
echo - Instalando Homebrew
echo - ----------------------------------------
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.bash_profile
brew doctor
brew update && brew upgrade
echo '\n'
echo -
echo - Homebrew Services
echo - ----------------------------------------
brew tap homebrew/services
echo '\n'
echo -
echo - Homebrew Cask
echo - ----------------------------------------
brew tap caskroom/cask
echo '\n'
echo -
echo - Node
echo - ----------------------------------------
brew install node
node --version
echo '\n'
echo -
echo - NPM
echo - ----------------------------------------
brew update npm -g
echo '\n'
echo -
echo - GIT
echo - ----------------------------------------
brew install git
echo '\n'
echo -
echo - iTerm e ZSH
echo - ----------------------------------------
brew install --cask iterm2
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo '\n'
echo - VISUAL STUDIO
echo - ----------------------------------------
brew install --cask visual-studio-code
echo - MACDOWN
echo - ----------------------------------------
brew install --cask macdown
echo - DOCKER
echo - ----------------------------------------
brew install --cask docker
echo - DOCKER COMPOSE
echo - ----------------------------------------
brew install --cask docker-compose
echo - KITEMATIC
echo - ----------------------------------------
brew install --cask kitematic
echo - SOURCETREE
echo - ----------------------------------------
brew install --cask sourcetree
echo - MYSQL WORKBENCH
echo - ----------------------------------------
brew install --cask mysqlworkbench
echo - DROPBOX
echo - ----------------------------------------
brew install --cask dropbox
echo - ALFRED
echo - ----------------------------------------
brew install --cask alfred
echo - VLC
echo - ----------------------------------------
brew install --cask vlc
echo - EVERNOTE
echo - ----------------------------------------
brew install --cask evernote
echo - TELEGRAM
echo - ----------------------------------------
brew install --cask telegram
echo - WHATSAPP
echo - ----------------------------------------
brew install --cask whatsapp
echo - SPOTIFY
echo - ----------------------------------------
brew install --cask spotify
echo - TUNEIN
echo - ----------------------------------------
brew install --cask tunein
echo - TEAMS
echo - ----------------------------------------
brew install --cask microsoft-teams
echo - OFFICE
echo - ----------------------------------------
brew install --cask microsoft-office
echo - AZURE STORAGE EXPLORER
echo - ----------------------------------------
brew install --cask microsoft-azure-storage-explorer
echo - CHROME
echo - ----------------------------------------
brew install --cask google-chrome
echo - FIREFOX
echo - ----------------------------------------
brew install --cask firefox
echo - OPERA
echo - ----------------------------------------
brew install --cask opera
echo - POSTMAN
echo - ----------------------------------------
brew install --cask postman
echo - FIGMA
echo - ----------------------------------------
brew install --cask figma
echo - POSTMAN
echo - ----------------------------------------
brew install --cask android-studio
echo '\n'
echo -
echo - Executando um clean up pós instalações
echo - ----------------------------------------
brew cleanup --prune=all
rm -rf /Library/Caches/Homebrew/*
echo '\n'
echo Feito! Tenha um bom trabalho!
@andremachadodev
Copy link
Author

@coelhoadler
Copy link

Parabéns Machado, ficou muito bom!

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