Skip to content

Instantly share code, notes, and snippets.

@imaginamundo
Last active August 29, 2023 20:29
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 imaginamundo/326cdf363d013d0a68537a0655b7ca54 to your computer and use it in GitHub Desktop.
Save imaginamundo/326cdf363d013d0a68537a0655b7ca54 to your computer and use it in GitHub Desktop.
zshrc ❤️
# Load version control information
autoload -Uz vcs_info
precmd() { vcs_info }
precmd_functions+=( precmd_vcs_info )
# Format the vcs_info_msg_0_ variable
zstyle ':vcs_info:git:*' formats ' · %b'
# Set up the prompt (with git branch name)
setopt PROMPT_SUBST
# Show path before the $ prompt
PROMPT='%~${vcs_info_msg_0_} $ '
# Deno
export DENO_INSTALL="/Users/$USERNAME/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
# Homebrew
# export PATH=/opt/homebrew/bin:$PATH
# Node Version Manager
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment