Skip to content

Latest commit

 

History

History
234 lines (169 loc) · 5.11 KB

readme.md

File metadata and controls

234 lines (169 loc) · 5.11 KB

Getting started

cd & git clone https://github.com/phildionne/dotfiles

Brew

Install brew

# Upgrade outdated casks and outdated, unpinned formulae
brew upgrade

# Remove stale lock files and outdated downloads for all formulae and casks, and remove old versions of installed formulae
# -s Scrub the cache, including downloads for even the latest versions.
brew cleanup -s

# Uninstall formulae that were only installed as a dependency of another formula and are now no longer needed
brew autoremove

# Upgrade outdated casks
brew upgrade $(brew outdated --cask --greedy --quiet)

Terminal

Zsh

While latest macOS versions have Zsh already installed, it's best to install it with brew to get the latest and keep it updated.

brew install zsh

Warp

Then install Warp.

brew install warp

Utilities

brew install \
  asdf \
  doctl \
  yarn \
  tmux \
  overmind \
  redis
  • asdf for managing programming language versions
  • yarn for managing JavaScript packages
  • doctl for interacting with the Digital Ocean API
  • overmind for managing Procfile-based applications
  • tmux for saving project state and switching between projects
  • redis for storing key-value data

Git

brew install hub

brew tap microsoft/git
brew install --cask git-credential-manager-core

Languages

asdf plugin add ruby
asdf plugin add nodejs

asdf install ruby latest
asdf install nodejs latest

Apps

Use brew cask:

Development

brew install --cask \
  visual-studio-code \
  github \
  dash \
  ngrok \
  postman

Database

brew install --cask \
  postgres-unofficial \
  sequel-pro \
  postico \
  base

Postgres.app

Configure your $PATH to use the included command line tools:

sudo mkdir -p /etc/paths.d &&
echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp

See:

Other

brew install --cask \
  appcleaner \
  bitwarden \
  dropbox \
  google-chrome \
  messenger \
  slack \
  raycast \
  spotify \
  the-unarchiver \
  vlc \
  webtorrent

Docker

Install docker:

brew install --cask docker

Erlang & Elixir

Install erlang-history to enable history in the elixir & erlang interactive consoles.

Everything else

  • .git_config
  • .global_ignore
  • .gemrc
  • .irbrc
  • .pryrc
  • .rspec

Create symlinks to your dotfiles in ~.

cd ~/dotfiles
rake install

Drivers

Install homebrew-cask-drivers

brew tap homebrew/cask-drivers

Install Display Link to support two screens on a M1:

brew install --cask displaylink

OSX

Quick Look

Adds support for:

  • Preview source code files with syntax highlighting
  • Preview plain text files without or with unknown file extension
  • Preview Markdown files
  • Preview JSON files
brew install \
  qlcolorcode \
  qlstephen \
  qlmarkdown \
  quicklook-json

See: https://github.com/sindresorhus/quick-look-plugins

Other

optional - Allow to write to ntfs formated drives:

brew install homebrew/fuse/ntfs-3g
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.original
sudo ln -s /usr/local/sbin/mount_ntfs /sbin/mount_ntfs

Security

Make you mac secure; mostly taken from this guide.

  1. Enable firewall
  2. Enable FileVault
  3. Disable spotlight suggestions
  4. Configure PGP/GPG
  5. Use latest OpenSSL: brew install openssl
  6. Use curl with openssl: brew install curl --with-openssl && brew link --force curl
  7. Use NextDNS