-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathonedark.zsh-theme
70 lines (58 loc) · 2.38 KB
/
onedark.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
# onedark prompt
declare -gA ONEDARK
ONEDARK[black]="#0e1013"
ONEDARK[bg0]="#1f2329"
ONEDARK[bg1]="#282c34"
ONEDARK[bg2]="#30363f"
ONEDARK[bg3]="#323641"
ONEDARK[bg4]="#181b20"
ONEDARK[bg]="#21252b"
ONEDARK[bg_blue]="#61afef"
ONEDARK[bg_yellow]="#e8c88c"
ONEDARK[fg]="#abb2bf" # "#a0a8b7"
ONEDARK[purple]="#bf68d9"
ONEDARK[green]="#8ebd6b"
ONEDARK[orange]="#cc9057"
ONEDARK[blue]="#4fa6ed"
ONEDARK[yellow]="#e2b86b"
ONEDARK[cyan]="#48b0bd"
ONEDARK[red]="#e55561"
ONEDARK[grey]="#535965"
ONEDARK[light_grey]="#7a818e"
ONEDARK[dark_cyan]="#266269"
ONEDARK[dark_red]="#8b3434"
ONEDARK[dark_yellow]="#835d1a"
ONEDARK[dark_purple]="#7e3992"
# %K{black} %F{%(!.yellow.default)}jason@%m %S%F{cyan}%K{black}%k ~/d/s/j/jparse %s%S%F{yellow}%K{cyan}%k master ± %s%k%F{yellow}%f
#TODO:
# [ ] If previous command fails, red X (glyph) to start second line of prompt and the exit code of the previous command
# [ ] move date / time to right hand prompt (perhaps the above, as well?)
# [ ] show full path on top line
# [ ] git section bg green when good, yellow/orange when dirty
# ✘
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX="("
ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX=") "
pcolor="${ZSH_THEME_ONEDARK_PROMPT_COLOR:-"${ONEDARK[blue]}"}"
icon="${ZSH_THEME_ONEDARK_PROMPT_ICON:-" "}"
icon_color="${ZSH_THEME_ONEDARK_PROMPT_ICON_COLOR:-"${pcolor}"}"
local section_start="╭─"
local section_icon="%F{$icon_color%} $icon %{$reset_color%}"
local section_username="%n %K{$pcolor%}%F{$ONEDARK[bg]%}"
local section_path="%F{$ONEDARK[bg]%} %~ %{$reset_color%}%F{$pcolor%}%{$reset_color%} "
local nextline="
╰─o "
local section_end="%K{$ONEDARK[bg]%}%F{$ONEDARK[fg]%}"
PROMPT='${section_start}${section_icon}${section_username}${section_path}${nextline}$(virtualenv_prompt_info)${section_end}'
#ZSH_THEME_GIT_PROMPT_PREFIX="%K{$ONEDARK[green]%}%F{$ONEDARK[bg]%} "
ZSH_THEME_GIT_PROMPT_PREFIX="["
ZSH_THEME_GIT_PROMPT_SUFFIX="]"
ZSH_THEME_GIT_PROMPT_SEPARATOR="|"
ZSH_THEME_GIT_PROMPT_BRANCH="%{$fg_bold[magenta]%}"
ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[red]%}%{●%G%}"
ZSH_THEME_GIT_PROMPT_CONFLICTS="%{$fg[red]%}%{✖%G%}"
ZSH_THEME_GIT_PROMPT_CHANGED="%{$fg[blue]%}%{✚%G%}"
ZSH_THEME_GIT_PROMPT_BEHIND="%{↓%G%}"
ZSH_THEME_GIT_PROMPT_AHEAD="%{↑%G%}"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%}%{…%G%}"
ZSH_THEME_GIT_PROMPT_STASHED="%{$fg_bold[blue]%}%{⚑%G%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}%{✔%G%}"