Compare commits

...

2 Commits

Author SHA1 Message Date
Dmytro Meleshko 60f8ca3788 [zsh] display the current pyenv version in the prompt 2021-02-02 22:52:58 +00:00
Dmytro Meleshko ed93c816f9 [nvim] bring back a fix removed in 14e64127e4 2021-02-02 22:52:58 +00:00
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1 @@
setlocal matchpairs-=<:>

View File

@ -1,7 +1,5 @@
#!/usr/bin/env zsh
export VIRTUAL_ENV_DISABLE_PROMPT=false
# Escapes `%` in all arguments by replacing it with `%%`. Escaping is needed so
# that untrusted input (e.g. git branch names) doesn't affect prompt rendering.
prompt_escape() {
@ -102,6 +100,11 @@ PROMPT+='$(prompt_vcs_info 2>/dev/null)'
# Python's virtualenv
PROMPT+='${VIRTUAL_ENV:+" %F{blue}venv:%F{magenta}${VIRTUAL_ENV:t}%f"}'
VIRTUAL_ENV_DISABLE_PROMPT=true
# pyenv
PROMPT+='${PYENV_VERSION:+" %F{blue}pyenv:%F{magenta}${PYENV_VERSION:t}%f"}'
PYENV_VIRTUAL_ENV_DISABLE_PROMPT=true
PROMPT+=' '