Pogorelovs

Navigate back to the homepage

OS X environment setup guide

Sergey Pogorelov
December 7th, 2018 · 1 min read

When I used Ubuntu as my main system I experimented a lot and often reinstalled the system. I’ve got to the conclusion that it might be handy to have a list of steps to do after a fresh system install.

Initially, I took a textbook and wrote down applications that I’ll need to install on a fresh system. With time I’ve decided to create a guide and put it to my GitHub. It stills there. After all, I’ve realized that it’s possible to create a few scripts that will install everything for me.

Currently, I’m using OS X so I’ve decided to do the same script and guide for OS X.

TLDR

  • My post-install script:
1echo "Enter your name:"
2read NAME
3echo "Enter your email:"
4read EMAIL
5
6# Install xcode console developer tools
7xcode-select --install
8
9# Git configuration
10git config --global user.name $NAME
11git config --global user.email $EMAIL
12git config --global credential.helper osxkeychain
13
14# Homebrew installation
15/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
16
17# Check if Homebrew installed correctly
18brew doctor
19
20# Disable Homebrew analytics
21brew analytics off
22
23brew install zsh autojump httpie tree gradle p7zip pstree nvm
24
25# Quick look plugins
26brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json quicklook-csv suspicious-package
27
28# Development software
29brew cask install java intellij-idea-ce visual-studio-code postman docker pycharm-ce dash sourcetree
30
31# Software
32brew cask install appcleaner google-chrome transmission vlc calibre spotify slack
33
34# Install zsh-syntax-higlighting plugin
35git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
36
37# install oh my zsh
38sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  • My .zshrc config:
1# Path to your oh-my-zsh installation.
2export ZSH="/Users/sergeioff/.oh-my-zsh"
3
4ZSH_THEME="agnoster"
5
6COMPLETION_WAITING_DOTS="true"
7
8plugins=(
9 git
10 autojump
11 docker
12 gradle
13 httpie
14 mvn
15# ng
16 npm
17# vagrant
18 vscode
19 yarn
20 colored-man
21 zsh-syntax-highlighting
22)
23
24source $ZSH/oh-my-zsh.sh

iTerm2 profile setup

  • Select Solarized dark color scheme:

    Color scheme selection tab
  • Select Source Code Variable Italic font:

    Font selection
  • Load natural text editing preset:

    Load text editing preset

Adjust system settings:

  • Show battery percentage
  • Use stacks on Desktop
  • Disable Bluetooth
  • Link Google account (for calendar)
  • Disable “Show recent applications in Dock”
  • Show everything in Finder sidebar
    Finder sidebar settings

This way simplifies a new environment setup and saves a lot of time since almost everything is automatized.

Join my email list and get notified about new content

Be the first to receive my latest content with the ability to opt-out at anytime. I promise not to spam your inbox or share your email with any third parties.

More articles from Pogorelovs

How-to debug JVM applications remotely

Sometimes it might be useful to debug remote applications that run on the remote server and not your local machine...

February 4th, 2020 · 1 min read

Playing with MSK kafka

When you work with MSK you might want to connect with local producer/consumer to it for the test purposes, but you should keep in mind that MSK (as all AWS services) requires connection through SSL and here you'll need to specify it in your Kafka client...

February 4th, 2020 · 1 min read
© 2018–2020 Pogorelovs
Link to $https://github.com/sergeioffLink to $https://www.linkedin.com/in/sergeioff