aboutsummaryrefslogtreecommitdiff
path: root/.local/share/oh-my-zsh/themes/loek.zsh-theme
blob: 217b7fb84cddf7fbdd23439ea33e6d7db5b31e7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
INFO_COLOR=$'%{\e[90m%}' # bright gray
SEPARATOR_COLOR=$'%{\e[30m%}' # normal gray
RESET_COLOR=$'%{\e[0m%}'

SEPARATOR="$SEPARATOR_COLOR -> "

PROMPT=""
# only display hostname in prompt if connected over SSH
[ -n "$SSH_CLIENT" ] && PROMPT+="$INFO_COLOR%m$SEPARATOR"
PROMPT+="$INFO_COLOR%c$SEPARATOR" # working directory
PROMPT+="$INFO_COLOR\$(git_prompt_info)" # git info (if in repo)
PROMPT+="$RESET_COLOR"

ZSH_THEME_GIT_PROMPT_PREFIX="${INFO_COLOR}git "
ZSH_THEME_HG_PROMPT_PREFIX="${INFO_COLOR}hg "
ZSH_THEME_GIT_PROMPT_SUFFIX="$SEPARATOR"
ZSH_THEME_HG_PROMPT_SUFFIX="$SEPARATOR"

# vim:ft=zsh