Last active
August 29, 2023 20:29
-
-
Save imaginamundo/326cdf363d013d0a68537a0655b7ca54 to your computer and use it in GitHub Desktop.
zshrc ❤️
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
# 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