Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Add to ~/.zshrc:
#
# if [ -f ~/scripts/.zshrc ]; then
# . ~/scripts/.zshrc
# fi

# Custom prompt: git branch + current dir + prompt symbol
autoload -Uz vcs_info add-zsh-hook
add-zsh-hook precmd vcs_info
zstyle ':vcs_info:git:*' formats '[%b] '
setopt PROMPT_SUBST
PROMPT='${vcs_info_msg_0_}%~ %# '

command -v fnm >/dev/null 2>&1 && eval "$(fnm env --use-on-cd --shell zsh)"