Skip to content

Latest commit

 

History

History
222 lines (180 loc) · 4.42 KB

mac-setup.org

File metadata and controls

222 lines (180 loc) · 4.42 KB

macOS Mojave v. 10.14 Setup

A simple list of instructions to make setting up your Apple computer.

Largely based on taniarasica’s page

Preferences

  • Keyboard > Text > Disable “Correct spelling automatically”.
  • Security and Privacy > Firewall > On
  • Security and Privacy > General > App Store and identified developers
  • File Sharing > Off
  • Users & Groups > Login Items > Spectacle

Show Library folder

chflags nohidden ~/Library

Show hidden files

This can also be done by pressing command + shift + ..

defaults write com.apple.finder AppleShowAllFiles YES

Show path bar

defaults write com.apple.finder ShowPathbar -bool true

Show status bar

defaults write com.apple.finder ShowStatusBar -bool true

Disable unidentified developer warnings

sudo spctl --master-disable

Homebrew

Check Homebrew site for updated command

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Mac App Store

Not really needed now, bundle file will handle

brew install mas

Sign in

Not needed if you sign in via App first

mas signin email@email.com

Brewfile

touch Brewfile
brew 'git'
brew 'ssh-copy-id'
brew 'cowsay'
brew 'curl'
brew 'mas'
brew 'wget'
brew 'tree'
brew 'youtube-dl'
brew 'handbrake'
brew 'htop-osx'
brew 'neofetch'
brew 'slashem'
brew 'tldr'
brew 'tmux'

tap 'neovim/neovim'
brew 'neovim'

tap 'homebrew/cask-fonts'
tap 'homebrew/cask-drivers'
tap 'homebrew/bundle'
tap 'railwaycat/emacsmacport'

cask 'alfred'
#cask 'bartender'
cask 'bettertouchtool'
cask 'chronosync'
#cask 'dropbox'
cask 'daisydisk'
cask 'firefox'
cask 'Geekbench'
cask 'fliqlo'
cask 'gimp'
cask 'google-chrome'
cask 'handbrake'
cask 'hazel'
cask 'hex-fiend'
cask 'iina'
cask 'iterm2'
cask 'nvalt'
cask 'openemu'
cask 'openinterminal'
cask 'plex-media-server'
cask "qlcolorcode"
cask "qlimagesize"
cask "qlmarkdown"
cask "qlstephen"
cask 'quicklook-csv'
cask 'quicklook-json'
cask 'spotify'
cask 'steam'
cask 'soundsource'
cask 'sublime-text'
cask 'telegram'
cask 'the-unarchiver'
cask 'transmit'
cask 'tunnelblick'
#cask 'vlc'

# fonts
cask 'font-source-code-pro'
cask 'font-source-sans-pro'
cask 'font-fira-code'
cask 'font-inconsolata-for-powerline'
cask 'font-roboto'

mas 'Amphetamine', id: 937984704
mas 'Fantastical 2', id: 975937182
mas '1Password 7', id: 1333542190
mas 'Geekbench 4', id:1175706108
mas 'Kaleidoscope', id: 587512244
mas 'Deliveries', id: 924726344
#mas 'Pixelmator', id: 407963104
mas 'Microsoft Remote Desktop 10', id: 1295203466

Install via Brewfile

brew bundle

GitHub

Config - ~/.gitconfig

[user]
  name   = Firstname Lastname
  email  = you@example.com
[github]
  user   = hunter2
[alias]
  a      = add
  ca     = commit -a
  cam    = commit -am
  cm     = commit -m
  s      = status
  pom    = push origin master
  pog    = push origin gh-pages
  puom   = pull origin master
  puog   = pull origin gh-pages
  cob    = checkout -b
  co     = checkout
  l      = log --oneline --decorate --graph
  lall   = log --oneline --decorate --graph --all
  ls     = log --oneline --decorate --graph --stat
  lt     = log --graph --decorate --pretty=format:'%C(yellow)%h%Creset%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset'
[credential]
  helper = osxkeychain

SSH

Config - ~./ssh/config

Host example
    HostName example.com
    User example-user
    IdentityFile key.pem

Generate SSH key

ssh-keygen -t rsa -b 4096 -C "you@example.com"
eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/id_rsa

Bash

Config - ~/.bash_profile

# Update and clean homebrow in one command
alias brewup='brew update; brew upgrade; brew prune; brew cleanup; brew doctor'

# Add colors to Terminal
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad

# Get Git branch
parse_git_branch() {
  git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}

# Format to user@host:/path/to/directory (branch-name)
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\$(parse_git_branch)\[\033[m\]\$ "