Skip to content

Instantly share code, notes, and snippets.

@bxt
Last active November 3, 2021 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bxt/f692fe6f63abdadda821 to your computer and use it in GitHub Desktop.
Save bxt/f692fe6f63abdadda821 to your computer and use it in GitHub Desktop.
Setup macOS / OS X so that is does not suck quite that hard (living doc)

Setting up OS X macOS

Things to configure

  • Install latest software update
  • Enable touch ID
  • Make Dock hide and remove some silly apps (photobooth, ...) disable recently used apps
  • Finder:
    • change to list view
    • display all file extensions
    • list view by default
    • oder by name
    • remove shit from sidebar
  • Config keyboard key repeat to fastest and delay to shortest (sider is inversed!).
  • Trackpad. Make mouse fast and touch soft, disable "swipe between pages", enable 3 finger app switch swipe
  • Remove siri from touch bar
  • Go to app store, log in, DL basic apps, do updates.
  • Config exchange account
  • Set in mail display preferences to display newest first in threads
  • Change console font to "Menlo" and set it to close window when done
  • Download Fira code: https://github.com/tonsky/FiraCode
  • Setup clock to show date, too
  • Setup battery icon to show percentage, too
  • In safari settings, last tab enable the developer's menu
  • defaults write com.apple.finder CreateDesktop false && killall Finder
  • In Mission Control settings untick the box to re-arrange spaces by recent usage
  • In Mission Control settings disable active corners

Apps to install

VS Code

Homebrew

Install some useful packages:

# Tools
brew install wget tree git pwgen imagemagick htop jq
# Rails and gem dependencies
brew install openssl readline libyaml libxml2 libxslt libiconv icu4c
# Actual dev stuff:
brew install node postgresql redis
# Gollum dependency
brew install icu4c
# JS development
brew install zmq yarn
# Docker n shit
brew install kubernetes-cli kubectx
# Git completion (there some stuff you need to paste into bash_profile!)
brew install git bash-completion

Copy from the logs the commands to have launchd start redis/postegresql at login.

Remember to run this from time to time:

brew update && brew upgrade; brew cleanup

To get latest stuff and cleanup.

To copy the installed things use brew bundle dump to produce a Brewfile which you can transfer to another machine and use brew bundle to install everything in it.

Ruby

Install the rubies with rvm:

echo "gem: --no-document" >> ~/.gemrc
curl -L https://get.rvm.io | bash -s stable --auto-dotfiles --autolibs=enable --rails

Install the one most important gem:

gem install bundler

When installing the nokogiri gem, use:

gem install nokogiri -- --with-xslt-dir=$HOME/homebrew/opt/libxslt
# Or:
gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.2/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.2/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28_1 --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib

When installing sqlite3 gem, use:

gem install sqlite3 -- --with-sqlite3-lib=/opt/local/lib/

Bash and firends

Do vim ~/.inputrc and add:

# History search

"\e\e[A": history-search-backward
"\e\e[B": history-search-forward
"\e[5~": history-search-backward
"\e[6~": history-search-forward

Get the Bashrc or zsh/ohmyzsh.

Do vim ~/.ssh/config and add ServerAliveInterval 120.

Git config:

git config --global user.name "Bernhard Häussner"
git config --global user.email "bxt@die-optimisten.net"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment