forked from heyMP/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdracula.zsh-theme
39 lines (32 loc) · 1.04 KB
/
dracula.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
# Dracula Theme v1.2.5
#
# https://github.com/dracula/dracula-theme
#
# Copyright 2016, All rights reserved
#
# Code licensed under the MIT license
# http://zenorocha.mit-license.org
#
# @author Zeno Rocha <[email protected]>
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
# if [ "$ZSH_PRODUCTION_ENV" ]; then
# local server_env_color="%{$fg_bold[red]%"
# else
# local server_env_color="%{$fg_bold[green]%"
# fi
if [ "$ZSH_SERVER_COLOR" ]; then
local server_env_color="%{$fg_bold[$ZSH_SERVER_COLOR]%"
else
local server_env_color="%{$fg_bold[green]%"
fi
if [ "$ZSH_SERVER_NAME" ]; then
local server_env_name="$ZSH_SERVER_NAME"
else
local server_env_name="%m"
fi
PROMPT='${ret_status} ${server_env_color} ${server_env_name} as %n %{$fg_bold[green]%}%p %{$fg_bold[blue]%}%c $(git_prompt_info)% %{$reset_color%}
'
ZSH_THEME_GIT_PROMPT_CLEAN=") %{$fg_bold[green]%}✔ "
ZSH_THEME_GIT_PROMPT_DIRTY=") %{$fg_bold[yellow]%}✗ "
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[cyan]%}("
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"