Skip to content

Instantly share code, notes, and snippets.

@kmatt
Forked from aiqc/.zshrc
Created February 18, 2022 04:18
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 kmatt/0172bff8ce6356511bc6c69f21a719d9 to your computer and use it in GitHub Desktop.
Save kmatt/0172bff8ce6356511bc6c69f21a719d9 to your computer and use it in GitHub Desktop.
zsh_prompt.txt
# ========= PROMPT =========
# Version control information
autoload -Uz vcs_info
precmd() { vcs_info }
# Format the vcs_info_msg_0_ variable
zstyle ':vcs_info:git:*' formats ' %b '
# Render the prompt
setopt PROMPT_SUBST
PROMPT='
📂 %F{085}%~%f 🔀%F{051}${vcs_info_msg_0_} 🐍 %F{085}${PYENV_VERSION} %f▶ %F{220}'
# Changes the color back before the stdout
preexec () { echo -ne "\e[0m
" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment