theme: Add virtualenv support
This commit is contained in:
+6
-2
@@ -6,17 +6,21 @@ typeset my_gray="$FG[240]"
|
||||
if [ -z "${__GIT_PROMPT_DIR}" ]; then
|
||||
PS1='$my_gray${(r:$COLUMNS::-:)}%{$reset_color%}
|
||||
╭ %T %{$FG[208]%}%~%{$reset_color%}$(git_prompt_info)
|
||||
╰ %(!.#.») '
|
||||
╰$(virtualenv_prompt_info) %(!.#.») '
|
||||
else
|
||||
PS1='$my_gray${(r:$COLUMNS::-:)}%{$reset_color%}
|
||||
╭ %T %{$FG[208]%}%~%{$reset_color%}$(git_super_status)
|
||||
╰ %(!.#.») '
|
||||
╰$(virtualenv_prompt_info) %(!.#.») '
|
||||
fi
|
||||
PS2='%{$fg[red]%}\ %{$reset_color%}'
|
||||
|
||||
# Right prompt
|
||||
RPS1='%(?..%{$fg[red]%}%? ↵%{$reset_color%}) $FG[245]%n@%m%{$reset_color%}'
|
||||
|
||||
# Virtualenv (plugin virtualenv)
|
||||
ZSH_THEME_VIRTUALENV_PREFIX=" %{$FG[075]%}("
|
||||
ZSH_THEME_VIRTUALENV_SUFFIX=")%{$reset_color%}"
|
||||
|
||||
# Git theme
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$reset_color%}["
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}]"
|
||||
|
||||
Reference in New Issue
Block a user