Last active
May 2, 2022 22:45
-
-
Save aiqc/e55bfbf6b41d199015f79b9fcd7a46b3 to your computer and use it in GitHub Desktop.
zsh_prompt.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ========= 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
working directory, git branch, virtual env, command