-
Notifications
You must be signed in to change notification settings - Fork 0
/
plain-ui.zsh-theme
72 lines (55 loc) · 2.05 KB
/
plain-ui.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
60
61
62
63
64
65
66
67
68
69
70
71
72
#############################################
### ###
### ###
### plain-ui : a oh-my-zsh theme ###
### version : 1.0 ###
### developed by : @purveshpatel511 ###
### Licence : MIT Licence ###
### ###
### ###
#############################################
correct_username() {
echo "%{$fg_bold[yellow]%}%n%{$reset_color%}"
}
incorrect_username() {
echo "%S%{$fg_bold[red]%}%{$bg[white]%}%n%{$reset_color%}%s"
}
display_username() {
echo "%(?.$(correct_username).$(incorrect_username))"
}
#\u21e2⇢ u21e8⇨ long: u27fc⟼ u27fe⟾ 27ff⟿
prompt_indicator() {
echo "%{$fg_bold[orange]%}\u27fc %{$reset_color%}"
}
display_directory() {
echo "%{$fg_bold[cyan]%}%0~%{$reset_color%}"
}
git_prompt() {
echo "%{$fg_bold[magenta]%}\ue0a0 $(git_prompt_info)%{$reset_color%}"
}
open_bracket() {
echo "%{$fg[green]%}%B[%b%{$reset_color%}"
}
close_bracket() {
echo "%{$fg[green]%}%B]%b%{$reset_color%}"
}
dashed_line() {
echo "%{$fg[green]%}%B--%b%{$reset_color%}"
}
display_time() {
echo "%{$fg_bold[red]%}%*%{$reset_color%}"
}
# set the git_prompt_info text
ZSH_THEME_GIT_PROMPT_PREFIX=""
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DIRTY="\u26a1"
ZSH_THEME_GIT_PROMPT_CLEAN="\u2728"
# set the git_prompt_status text
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%} \u271a %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%} \u00b1 %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} \u2718 %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%} \u27a6 %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%} \u2699 %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[white]%} \u2731 %{$reset_color%}"
PROMPT='$(open_bracket)$(display_username)$(close_bracket)$(dashed_line)$(open_bracket)$(display_directory)$(close_bracket)$(dashed_line)$(open_bracket)$(git_prompt)$(close_bracket) $(display_time)
$(prompt_indicator) '