Skip to content

Instantly share code, notes, and snippets.

@aiqc
Last active May 2, 2022 22:45
Embed
What would you like to do?
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
" }
@aiqc
Copy link
Author

aiqc commented Dec 10, 2021

working directory, git branch, virtual env, command

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment