forked from geerlingguy/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zsh_theme_config
36 lines (32 loc) · 1.02 KB
/
.zsh_theme_config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
BULLETTRAIN_PROMPT_ORDER=(
time
git
status
virtualenv
dir
cmd_exec_time
)
BULLETTRAIN_DIR_EXTENDED=0
BULLETTRAIN_GIT_PROMPT_CMD="\$(parse_git_dirty)"
BULLETTRAIN_CONTEXT_DEFAULT_USER=$USER
ZSH_THEME_GIT_PROMPT_DIRTY="%F{red}✘%F{black}"
ZSH_THEME_GIT_PROMPT_CLEAN="%F{green}✔%F{black}"
ZSH_THEME_GIT_PROMPT_ADDED="%F{green}✚%F{black}"
ZSH_THEME_GIT_PROMPT_MODIFIED="%F{blue}✹%F{black}"
ZSH_THEME_GIT_PROMPT_DELETED="%F{red}✖%F{black}"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%F{yellow}✭%F{black}"
ZSH_THEME_GIT_PROMPT_RENAMED="➜"
ZSH_THEME_GIT_PROMPT_UNMERGED="═"
ZSH_THEME_GIT_PROMPT_AHEAD="⬆"
ZSH_THEME_GIT_PROMPT_BEHIND="⬇"
ZSH_THEME_GIT_PROMPT_DIVERGED="⬍"
# Virtualenv: current working virtualenv
prompt_virtualenv() {
local venv_prompt
local virtualenv_path="$VIRTUAL_ENV"
if [[ -n $virtualenv_path ]]; then
venv_prompt="$(basename $virtualenv_path)"
prompt_segment $BULLETTRAIN_VIRTUALENV_BG $BULLETTRAIN_VIRTUALENV_FG \
"$BULLETTRAIN_VIRTUALENV_PREFIX$venv_prompt"
fi
}