Skip to content

Instantly share code, notes, and snippets.

@garlic0x1
Last active July 10, 2025 01:13
Show Gist options
  • Save garlic0x1/b18439c9f8959ad3c9c2775d0caaab70 to your computer and use it in GitHub Desktop.
Save garlic0x1/b18439c9f8959ad3c9c2775d0caaab70 to your computer and use it in GitHub Desktop.
zsh prompt
NEWLINE=$'\n'
autoload -Uz vcs_info
precmd() { vcs_info }
zstyle ':vcs_info:git:*' formats '%b '
setopt PROMPT_SUBST
PROMPT='${NEWLINE}%F{green}%*%f %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f${NEWLINE}λ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment