Last active
June 8, 2022 04:54
-
-
Save jamsinclair/295b063c53b00f4fff5001055eff32b8 to your computer and use it in GitHub Desktop.
ZSH Macbook Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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