-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsteeef.zsh-theme
60 lines (54 loc) · 2.7 KB
/
steeef.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# vim:et sts=2 sw=2 ft=zsh
#
# A customizable version of the steeef theme from
# https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/steeef.zsh-theme
#
# Requires the `git-info` zmodule to be included in the .zimrc file.
# use extended color palette if available
if (( terminfo[colors] >= 256 )); then
if (( ! ${+APPLE_COLOR} )) typeset -g APPLE_COLOR=0
if (( ! ${+USER_COLOR} )) typeset -g USER_COLOR=34
if (( ! ${+HOST_COLOR} )) typeset -g HOST_COLOR=166
if (( ! ${+PWD_COLOR} )) typeset -g PWD_COLOR=30
if (( ! ${+BRANCH_COLOR} )) typeset -g BRANCH_COLOR=81
if (( ! ${+UNINDEXED_COLOR} )) typeset -g UNINDEXED_COLOR=166
if (( ! ${+INDEXED_COLOR} )) typeset -g INDEXED_COLOR=118
if (( ! ${+UNTRACKED_COLOR} )) typeset -g UNTRACKED_COLOR=161
else
if (( ! ${+APPLE_COLOR} )) typeset -g APPLE_COLOR=black
if (( ! ${+USER_COLOR} )) typeset -g USER_COLOR=green
if (( ! ${+HOST_COLOR} )) typeset -g HOST_COLOR=yellow
if (( ! ${+PWD_COLOR} )) typeset -g PWD_COLOR=green
if (( ! ${+BRANCH_COLOR} )) typeset -g BRANCH_COLOR=cyan
if (( ! ${+UNINDEXED_COLOR} )) typeset -g UNINDEXED_COLOR=yellow
if (( ! ${+INDEXED_COLOR} )) typeset -g INDEXED_COLOR=green
if (( ! ${+UNTRACKED_COLOR} )) typeset -g UNTRACKED_COLOR=red
fi
if (( ! ${+UNINDEXED_IND} )) typeset -g UNINDEXED_IND=" ●"
if (( ! ${+INDEXED_IND} )) typeset -g INDEXED_IND=" ●"
if (( ! ${+UNTRACKED_IND} )) typeset -g UNTRACKED_IND=" ●"
typeset -g VIRTUAL_ENV_DISABLE_PROMPT=1
setopt nopromptbang prompt{cr,percent,sp,subst}
typeset -gA git_info
if (( ${+functions[git-info]} )); then
zstyle ':zim:git-info' verbose yes
zstyle ':zim:git-info:branch' format '%b'
zstyle ':zim:git-info:commit' format '%c'
zstyle ':zim:git-info:action' format '(%F{${INDEXED_COLOR}}%s%f)'
zstyle ':zim:git-info:unindexed' format '%F{${UNINDEXED_COLOR}}${UNINDEXED_IND}'
zstyle ':zim:git-info:indexed' format '%F{${INDEXED_COLOR}}${INDEXED_IND}'
zstyle ':zim:git-info:untracked' format '%F{${UNTRACKED_COLOR}}${UNTRACKED_IND}'
if [[ -n ${STASHED_IND} ]]; then
zstyle ':zim:git-info:stashed' format '%F{${STASHED_COLOR}}${STASHED_IND}'
fi
zstyle ':zim:git-info:keys' format \
'prompt' ' [%F{${BRANCH_COLOR}}%b%c%I%i%u%f%S%f]%s'
autoload -Uz add-zsh-hook && add-zsh-hook precmd git-info
fi
#1 PS1='
#1 %F{${USER_COLOR}}%n%f at %F{${HOST_COLOR}}%m%f in %F{${PWD_COLOR}}%~%f${(e)git_info[prompt]}${VIRTUAL_ENV:+" (%F{blue}${VIRTUAL_ENV:t}%f)"}
#1 %(!.#.$) '
# 🛰️ check nertfont out for more
PS1='%F{${APPLE_COLOR}}%f %F{${USER_COLOR}}%n%f@%F{${HOST_COLOR}}%m%f %F{${PWD_COLOR}}%~%f${(e)git_info[prompt]}${VIRTUAL_ENV:+" (%F{green}${VIRTUAL_ENV:t}%f)"}
%(?:%F{red}❯%F{yellow}❯%F{${USER_COLOR}}❯:%F{red}✗✗✗)%f '
unset RPS1