aboutsummaryrefslogtreecommitdiff
path: root/.local/share/oh-my-zsh/themes/loek.zsh-theme
blob: 52312342d7e6d9af971ec093041ecee623b33b8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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_GIT_PROMPT_SUFFIX="$SEPARATOR"

# vim:ft=zsh