Skip to content

Commit

Permalink
Add virtualenv status to prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcclell committed Oct 23, 2023
1 parent cd14b79 commit 7c2201d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions onedark.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ ONEDARK[dark_purple]="#7e3992"
# [ ] show full path on top line
# [ ] git section bg green when good, yellow/orange when dirty
#
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX="("
ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX=") "

pcolor="${ZSH_THEME_ONEDARK_PROMPT_COLOR:-"${ONEDARK[blue]}"}"
icon="${ZSH_THEME_ONEDARK_PROMPT_ICON:-" "}"
Expand All @@ -50,8 +52,7 @@ local nextline="
╰─o "
local section_end="%K{$ONEDARK[bg]%}%F{$ONEDARK[fg]%}"


PROMPT='${section_start}${section_icon}${section_username}${section_path}${nextline}${section_end}'
PROMPT='${section_start}${section_icon}${section_username}${section_path}${nextline}$(virtualenv_prompt_info)${section_end}'

#ZSH_THEME_GIT_PROMPT_PREFIX="%K{$ONEDARK[green]%}%F{$ONEDARK[bg]%} "
ZSH_THEME_GIT_PROMPT_PREFIX="["
Expand Down

0 comments on commit 7c2201d

Please sign in to comment.