-
Notifications
You must be signed in to change notification settings - Fork 2
/
haribo.zsh-theme
39 lines (35 loc) · 1.12 KB
/
haribo.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
BLUE="%{$fg_bold[blue]%}"
CYAN="%{$fg_bold[cyan]%}"
CYAN_NB="%{$fg_no_bold[cyan]%}"
GREEN="%{$fg_bold[green]%}"
GREEN_NB="%{$fg_no_bold[green]%}"
GREY="%{$fg_bold[grey]%}"
RED="%{$fg_bold[red]%}"
RED_NB="%{$fg_no_bold[red]%}"
RESET="%{$reset_color%}"
YELLOW="%{$fg_bold[yellow]%}"
YELLOW_NB="%{$fg_no_bold[yellow]%}"
PROMPT='$INDICATOR_COLOR» $CYAN_NB|%(!.$RED_NB.%{$fg_no_bold[green]%})%n$GREEN_NB@$HOSTNAME_COLOR%m $YELLOW_NB%*$CYAN_NB| $BLUE%/$(git_prompt_info)$(git_prompt_status)$RESET '
ZSH_THEME_GIT_PROMPT_ADDED="+"
ZSH_THEME_GIT_PROMPT_AHEAD="↑"
ZSH_THEME_GIT_PROMPT_CLEAN=" ="
ZSH_THEME_GIT_PROMPT_DELETED="×"
ZSH_THEME_GIT_PROMPT_DIRTY=" "
ZSH_THEME_GIT_PROMPT_DIVERGED="→←"
ZSH_THEME_GIT_PROMPT_MODIFIED="*"
ZSH_THEME_GIT_PROMPT_PREFIX=" $GREY‡ "
ZSH_THEME_GIT_PROMPT_RENAMED="➜"
ZSH_THEME_GIT_PROMPT_STASHED="•"
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_UNMERGED="↓"
ZSH_THEME_GIT_PROMPT_UNTRACKED="?"
function detect() {
if [[ -n $SSH_CONNECTION ]]; then
INDICATOR_COLOR="%(!.$RED.$YELLOW)"
HOSTNAME_COLOR=$GREEN
else
INDICATOR_COLOR="%(!.$RED.$BLUE)"
HOSTNAME_COLOR=$GREEN_NB
fi
}
detect