-
Notifications
You must be signed in to change notification settings - Fork 0
/
smelly.zsh-theme
39 lines (33 loc) · 1.19 KB
/
smelly.zsh-theme
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
37
38
39
#
# VENV
#
function virtualenv_info {
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
}
VENV_NAME='%{$fg_bold[cyan]%}$(virtualenv_info)%{$reset_color%}%'
#
# PROMPT
#
PROMPT_TIME='%{$fg[blue]%}%D{%H:%M:%S}'
PROMPT_STARTING_BRACKET='%{$fg_bold[cyan]%}┌─'
PROMPT_SECOND_STARTING_BRACKET='%{$fg_bold[cyan]%}└─'
PROMPT_BRACKET_BEGIN='%{$fg_bold[cyan]%}['
PROMPT_DIR_VAR='%{$fg_bold[green]%}dir:'
PROMPT_DIR='%{$fg_bold[yellow]%}%c'
PROMPT_BRACKET_END='%{$fg_bold[cyan]%}]'
PROMPT_USER='%{$fg_bold[blue]%}%n'
PROMPT_SIGN='%{$reset_color%}%#'
GIT_PROMPT_INFO='$(git_prompt_info)'
# Prompt looks like:
# ┌─[host:current_dir] (git_prompt_info)
# └─[username]%
PROMPT="${VENV_NAME}
${PROMPT_STARTING_BRACKET}${PROMPT_BRACKET_BEGIN}${PROMPT_TIME}${PROMPT_BRACKET_END}${PROMPT_BRACKET_BEGIN}${PROMPT_HOST}${PROMPT_SEPARATOR}$PROMPT_DIR_VAR${PROMPT_DIR}${PROMPT_BRACKET_END}${GIT_PROMPT_INFO}
$PROMPT_SECOND_STARTING_BRACKET${PROMPT_BRACKET_BEGIN}${PROMPT_USER}${PROMPT_BRACKET_END}${PROMPT_SIGN}"
#
# Git repository
#
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
ZSH_THEME_GIT_PROMPT_CLEAN=''