Skip to content

Instantly share code, notes, and snippets.

@jamsinclair
Last active June 8, 2022 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamsinclair/295b063c53b00f4fff5001055eff32b8 to your computer and use it in GitHub Desktop.
Save jamsinclair/295b063c53b00f4fff5001055eff32b8 to your computer and use it in GitHub Desktop.
ZSH Macbook Setup
# Place this file in the user's dir "~/."
# Add ZSH Plugins here (See: https://getantidote.github.io/usage)
ohmyzsh/ohmyzsh path:plugins/git
zsh-users/zsh-syntax-highlighting
# Setup Antidote (https://getantidote.github.io/install)
source ~/.antidote/antidote.zsh
antidote load
# Add Site Functions for zsh plugins installed via Brew
fpath+=("$(brew --prefix)/share/zsh/site-functions")
# Configure Pure Theme (https://github.com/sindresorhus/pure)
autoload -U promptinit; promptinit
prompt pure
# When command starts with a space it won't be stored in your shell history
setopt histignorespace
# Configure fnm to recognise .nvmrc files when changing dir
eval "$(fnm env --use-on-cd)"
# Output system user for ZSH themes
export DEFAULT_USER="$USER"
# Install Homebrew - https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Libraries from Source
brew update
brew install hub
brew install node
brew install yarn
brew install z
brew install fnm
brew install deno
brew install pure
# Install Binaries
brew install --cask iterm2
brew install --cask rectangle # Spectacle replacement
# brew install --cask ballast (optional)
brew install --cask raycast
# Setup fnm (better nvm alternative, faster)
node_version=16
fnm install $node_version
fnm default $node_version
fnm use $node_version
# Setup Antidote
[[ -e ~/.antidote ]] || git clone https://github.com/mattmc3/antidote.git ~/.antidote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment