-
Notifications
You must be signed in to change notification settings - Fork 0
/
coldark.zsh-theme
63 lines (51 loc) · 1.83 KB
/
coldark.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
# Coldark theme for ZSH
# Tested on Manjaro Linux only.
# It is recommended to use it with Coldark for XFCE4 terminal.
# Features: git status
# Copyright: Armand Philippot, 2020
# Version: 1.0.0
# ------------------------------------------------------------------------------
# PROMPT COMPONENTS
# Each component will draw itself, and hide itself if no information needs
# to be shown
# ------------------------------------------------------------------------------
# Username - Bold, blue foreground
username() {
echo "%B%F{004} %n %F{015}→ %b%k%f"
}
# Current directory - Bold, green foreground
directory() {
echo "%B%F{002}%~%b%f"
}
# # if root, $ if user - Yellow foreground
prompt_indicator() {
echo "%B%F{003}%(!.#.$)%b%f"
}
# Time - Blue foreground
current_time() {
echo "%F{004}%T%f"
}
# ------------------------------------------------------------------------------
# PROMPT COMPONENTS SETTINGS
# Define information to show and colors
# ------------------------------------------------------------------------------
# Git info
ZSH_THEME_GIT_PROMPT_PREFIX="%B%F{015} on %F{003}"
ZSH_THEME_GIT_PROMPT_SUFFIX=" %b%f"
ZSH_THEME_GIT_PROMPT_DIRTY=" %F{001}✗"
ZSH_THEME_GIT_PROMPT_CLEAN=" %F{002}✔"
# Git Status
ZSH_THEME_GIT_PROMPT_ADDED="%K{002}%F{000} A %k%f"
ZSH_THEME_GIT_PROMPT_MODIFIED="%K{003}%F{000} M %k%f"
ZSH_THEME_GIT_PROMPT_DELETED="%K{001}%F{000} D %k%f"
ZSH_THEME_GIT_PROMPT_RENAMED="%K{004}%F{000} R %k%f"
ZSH_THEME_GIT_PROMPT_UNMERGED="%K{006}%F{000} = %k%f"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%K{005}%F{000} U %k%f"
# ------------------------------------------------------------------------------
# MAIN
# Entry point
# ------------------------------------------------------------------------------
PROMPT='
$(username)$(directory)$(git_prompt_info)$(git_prompt_status)
$(prompt_indicator) '
RPROMPT='$(current_time)'