Skip to content

Instantly share code, notes, and snippets.

@victornguyen
Last active January 27, 2019 05:46
Show Gist options
  • Save victornguyen/3720b3d0f69c3443030407eb851c3295 to your computer and use it in GitHub Desktop.
Save victornguyen/3720b3d0f69c3443030407eb851c3295 to your computer and use it in GitHub Desktop.
Random OSX setup notes that will eventually be automated

Setup steps that will eventually be scripted 🏡

Install:

  • Homebrew
  • nvm
  • gems
  • brew bundle

Symlinks:

  • zsh/zshrc > ~/.zshrc
  • zsh/zshenv > ~/.zshenv
  • tmux/tmux.conf > ~/.tmux.conf
  • vim/vimrc > ~/.vimrc
  • vim/plugins/ > ~/.vim/plugins/
  • ag/.agignore> ~/.agignore
  • git/gitconfig> ~/.gitconfig
  • git/gitignore> ~/.gitignore
  • karabiner/karabiner/json > ~/.config/karabiner/karabiner.json

Create dirs in ~/.vim for swap files

Create (or link) a default ~/.ruby-version

Apps

(Use brew-cask and mas?)

  • Chrome
  • Alfred
  • KeepingYouAwake
  • Spectacle
  • 1Password
  • iTerm
  • Dash
  • Slack

nvm, node and npm

Use git install instructions:

Clone:

git clone https://github.com/creationix/nvm.git ~/.nvm

Checkout lastest version and activate:

cd ~/.nvm && git checkout v0.34.0
source nvm.sh
# Restart shell

Install latest LTS node, set as default:

nvm install --lts
nvm use --lts
nvm alias default 10.15.0

Install latest npm:

npm install -g npm

Install homebrew:

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

Check $PATH and contents of /etc/paths to ensure /usr/local/bin appears before /usr/bin.

Install brews:

  • git
  • vim
  • tmux
  • zplug
  • the_silver_searcher
  • fzf (and run the install script)
  • z
  • tree
  • python
  • ruby-install
  • chruby
  • cmake
  • tig
  • diff-so-fancy
  • reattach-to-user-namespace

Gems

Update all installed gems:

gem update --system

iTerm

  • Run dotfiles/iterm/install_iterm_profile.sh to copy profile data.
  • Load preferences from custom folder (the on in dotfiles/iterm)

Vim

  • Symlink .vimrc from dotfiles
$ ln -s ~/dotfiles/vim/vimrc ~/.vimrc
$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  • Run :PlugInstall from vim

Updating vim via homebrew:

brew update
brew upgrade --HEAD vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment