Skip to content

Instantly share code, notes, and snippets.

@aiqc
Last active May 2, 2022 22:45
Show Gist options
  • Save aiqc/e55bfbf6b41d199015f79b9fcd7a46b3 to your computer and use it in GitHub Desktop.
Save aiqc/e55bfbf6b41d199015f79b9fcd7a46b3 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
" }
@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