Skip to content

Instantly share code, notes, and snippets.

@uxjp
Created July 29, 2024 18:20
Show Gist options
  • Select an option

  • Save uxjp/580a9bd99478d8b1b7a4526b7d821d38 to your computer and use it in GitHub Desktop.

Select an option

Save uxjp/580a9bd99478d8b1b7a4526b7d821d38 to your computer and use it in GitHub Desktop.
zsh prompt config
autoload -Uz vcs_info
precmd() { vcs_info }
zstyle ':vcs_info:git:*' formats '%b '
setopt PROMPT_SUBST
PS1='%F{green}@%n%f %F{blue}%1d%f %F{cyan}${vcs_info_msg_0_}%f
$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment